From 63adb41f1a060c21a68143eb9e86c2790ef66f36 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 8 Aug 2024 10:45:09 +0200 Subject: ... --- hosts/surtr/bifrost/default.nix | 10 +++------- hosts/surtr/default.nix | 1 + hosts/surtr/vpn/default.nix | 30 +++++++++--------------------- 3 files changed, 13 insertions(+), 28 deletions(-) (limited to 'hosts/surtr') diff --git a/hosts/surtr/bifrost/default.nix b/hosts/surtr/bifrost/default.nix index 20cd5892..fbfde757 100644 --- a/hosts/surtr/bifrost/default.nix +++ b/hosts/surtr/bifrost/default.nix @@ -18,10 +18,8 @@ in { ListenPort = 51822; }; wireguardPeers = [ - { wireguardPeerConfig = { - AllowedIPs = [ "2a03:4000:52:ada:4:1::/96" ]; - PublicKey = trim (readFile ../../vidhar/network/bifrost/vidhar.pub); - }; + { AllowedIPs = [ "2a03:4000:52:ada:4:1::/96" ]; + PublicKey = trim (readFile ../../vidhar/network/bifrost/vidhar.pub); } ]; }; @@ -34,9 +32,7 @@ in { }; address = ["2a03:4000:52:ada:4::/96"]; routes = [ - { routeConfig = { - Destination = "2a03:4000:52:ada:4::/80"; - }; + { Destination = "2a03:4000:52:ada:4::/80"; } ]; linkConfig = { diff --git a/hosts/surtr/default.nix b/hosts/surtr/default.nix index e6ca0c64..ceb035cb 100644 --- a/hosts/surtr/default.nix +++ b/hosts/surtr/default.nix @@ -165,6 +165,7 @@ with lib; algorithm = "zstd"; }; + systemd.sysusers.enable = false; system.stateVersion = "20.09"; }; } diff --git a/hosts/surtr/vpn/default.nix b/hosts/surtr/vpn/default.nix index 74a9fb22..61a9d544 100644 --- a/hosts/surtr/vpn/default.nix +++ b/hosts/surtr/vpn/default.nix @@ -63,10 +63,8 @@ in { ListenPort = 51820; }; wireguardPeers = imap1 (i: { name, ip ? i }: { - wireguardPeerConfig = { - AllowedIPs = ["${prefix6}:${toString ip}::/96" "${prefix4}.${toString ip}/32"]; - PublicKey = trim (readFile (./. + "/${name}.pub")); - }; + AllowedIPs = ["${prefix6}:${toString ip}::/96" "${prefix4}.${toString ip}/32"]; + PublicKey = trim (readFile (./. + "/${name}.pub")); }) [ { name = "geri"; } { name = "sif"; } ]; }; }; @@ -86,19 +84,13 @@ in { MulticastDNS = false; }; routes = [ - { routeConfig = { - Destination = "202.61.240.1"; - }; + { Destination = "202.61.240.1"; } - { routeConfig = { - Destination = "0.0.0.0/0"; - Gateway = "202.61.240.1"; - }; + { Destination = "0.0.0.0/0"; + Gateway = "202.61.240.1"; } - { routeConfig = { - Destination = "::/0"; - Gateway = "fe80::1"; - }; + { Destination = "::/0"; + Gateway = "fe80::1"; } ]; extraConfig = '' @@ -114,13 +106,9 @@ in { }; address = ["${prefix6}::/96" "${prefix4}.0/32"]; routes = [ - { routeConfig = { - Destination = "${prefix6}::/80"; - }; + { Destination = "${prefix6}::/80"; } - { routeConfig = { - Destination = "${prefix4}.0/24"; - }; + { Destination = "${prefix4}.0/24"; } ]; linkConfig = { -- cgit v1.2.3