mirror of
https://github.com/mdlayher/homelab.git
synced 2024-12-14 11:47:32 +00:00
nixos/routnerr-2: new WireGuard key and tailscale
Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
parent
7824d81b02
commit
ee6149941d
3 changed files with 9 additions and 2 deletions
|
@ -95,7 +95,7 @@ func main() {
|
|||
Name: "wg0",
|
||||
Subnet: wg0,
|
||||
}
|
||||
wg.addPeer("matt-3", "b3kX+KbsjHDajUIe7Q7F/kEfSNdJ3Phv9Z4zqqlD7iE=")
|
||||
wg.addPeer("matt-3", "owbwahkmPWQg97iDSfn4dc80f2MYegEbnCAszExlbi8=")
|
||||
|
||||
// Set up the output structure and create host/infra records.
|
||||
out := output{
|
||||
|
|
|
@ -264,7 +264,7 @@
|
|||
"peers": [
|
||||
{
|
||||
"name": "matt-3",
|
||||
"public_key": "b3kX+KbsjHDajUIe7Q7F/kEfSNdJ3Phv9Z4zqqlD7iE=",
|
||||
"public_key": "owbwahkmPWQg97iDSfn4dc80f2MYegEbnCAszExlbi8=",
|
||||
"allowed_ips": [
|
||||
"192.168.20.10/32",
|
||||
"2600:6c4a:787f:1914::a/128",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
unstable = import <nixos-unstable-small> { };
|
||||
vars = import ./lib/vars.nix;
|
||||
|
||||
ethLink = (name:
|
||||
|
@ -192,6 +193,12 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
package = unstable.tailscale;
|
||||
interfaceName = "ts0";
|
||||
};
|
||||
|
||||
# Enable WireGuard Prometheus exporter and set up peer key/name mappings.
|
||||
# TODO: nixify the configuration.
|
||||
services.wireguard_exporter = {
|
||||
|
|
Loading…
Reference in a new issue