From adf2f1e7cbe9d98c2ba1a2b2d1870c6eff282f0e Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 13 Jan 2024 14:00:17 +0100 Subject: [PATCH] add additional wireguard interface without pihole install traceroute and units --- home-manager/default.nix | 2 ++ nixos/default.nix | 36 ++++++++++++++++++++++++++---------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/home-manager/default.nix b/home-manager/default.nix index a226f1d..7bb8334 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -36,6 +36,8 @@ silicon dbeaver wireshark + traceroute + units ]; file.k3s-pim-privkey = { diff --git a/nixos/default.nix b/nixos/default.nix index ee65215..20a78a4 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -121,16 +121,32 @@ networking = { hostName = "x260"; - wg-quick.interfaces.home = { - privateKeyFile = config.age.secrets.wg-quick-home-privkey.path; - address = [ "10.225.191.4/24" ]; - dns = [ "192.168.30.8" ]; - peers = [{ - presharedKeyFile = config.age.secrets.wg-quick-home-preshared-key.path; - endpoint = "wg.geokunis2.nl:51820"; - publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg="; - allowedIPs = [ "0.0.0.0/0" "::0/0" ]; - }]; + wg-quick.interfaces = { + home = { + privateKeyFile = config.age.secrets.wg-quick-home-privkey.path; + address = [ "10.225.191.4/24" ]; + dns = [ "192.168.30.8" ]; + autostart = false; + peers = [{ + presharedKeyFile = config.age.secrets.wg-quick-home-preshared-key.path; + endpoint = "wg4.geokunis2.nl:51820"; + publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg="; + allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + }]; + }; + + home-no-pihole = { + privateKeyFile = config.age.secrets.wg-quick-home-privkey.path; + address = [ "10.225.191.4/24" ]; + dns = [ "192.168.30.1" ]; + autostart = false; + peers = [{ + presharedKeyFile = config.age.secrets.wg-quick-home-preshared-key.path; + endpoint = "wg4.geokunis2.nl:51820"; + publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg="; + allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + }]; + }; }; };