From 06e5cfd5263ed4e45ebbe054624260bdfc3ea568 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 17 Jul 2022 13:28:14 +0200 Subject: [PATCH] pre-router: Make deployment via nixdeploy possible and begin renumbering --- flake.nix | 2 +- hosts/pre-router/ipv6.nix | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index d1a186b..5f32bb0 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ }; pre-router = { config, pkgs, ... }: { - deployment.targetHost = "lightbuffet.bula22.de"; + deployment.targetHost = "fd00:10:42:10::25"; deployment.keys = { }; diff --git a/hosts/pre-router/ipv6.nix b/hosts/pre-router/ipv6.nix index 9bc919c..1dcd1d4 100644 --- a/hosts/pre-router/ipv6.nix +++ b/hosts/pre-router/ipv6.nix @@ -16,7 +16,7 @@ wireguard.interfaces = { wg0 = { ips = [ "fe80::42:10:1/64" ]; - privateKey = "SUPERSECRETKEY"; + privateKeyFile = "/var/src/secrets/wireguard/wg0"; listenPort = 51820; allowedIPsAsRoutes = false; postSetup = '' @@ -34,10 +34,11 @@ }; }; boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = 1; - networking.interfaces.ens19.ipv6.addresses = [{ - address = "2a01:4f8:1c0c:8221::1"; - prefixLength = 64; - }]; + networking.interfaces.ens19.ipv6.addresses = [ + { address = "fd00:10:42:10::25"; prefixLength = 64; } + { address = "2a01:4f8:1c0c:8221::1"; prefixLength = 64; } + { address = "2a01:4f8:1c0c:8221::25"; prefixLength = 64; } + ]; services.corerad = { enable = true; settings = { @@ -54,4 +55,4 @@ }; }; }; -} \ No newline at end of file +}