From 76b9c847355c802642a4cf78445aa7f9edb27b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Sun, 5 Nov 2023 19:21:28 +0100 Subject: [PATCH] feat: give droppie a static IP --- hosts/droppie/networking.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/hosts/droppie/networking.nix b/hosts/droppie/networking.nix index 1be2fb5..d3ee7dd 100644 --- a/hosts/droppie/networking.nix +++ b/hosts/droppie/networking.nix @@ -4,15 +4,17 @@ pkgs, ... }: { - config = { - age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-droppie.age"; + networking.interfaces.enabcm6e4ei0 = { + ipv6.addresses = [ { address = "2a02:908:5b1:e3c0:3077:3::"; prefixLength = 128; } ]; + }; - pub-solar.wireguard-client = { - ownIPs = [ - "10.0.1.3/32" - "fd00:b12f:acab:1312:acab:3::/96" - ]; - wireguardPrivateKeyFile = "/run/agenix/wg-private-key"; - }; + age.secrets.wg-private-key.file = "${flake.self}/secrets/wg-private-droppie.age"; + + pub-solar.wireguard-client = { + ownIPs = [ + "10.0.1.3/32" + "fd00:b12f:acab:1312:acab:3::/96" + ]; + wireguardPrivateKeyFile = "/run/agenix/wg-private-key"; }; }