From 9765e72a9944f64f6fb45d2b983426b5f71d0ffc Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 20 Jan 2024 16:51:25 +0100 Subject: [PATCH] fix ipv6 for wireguard add myself to dialout group --- home-manager/default.nix | 5 ++++- nixos/default.nix | 18 +++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/home-manager/default.nix b/home-manager/default.nix index 7bb8334..0ac02fb 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -36,8 +36,11 @@ silicon dbeaver wireshark - traceroute units + btrfs-progs + exfat + qFlipper + f3 ]; file.k3s-pim-privkey = { diff --git a/nixos/default.nix b/nixos/default.nix index 20a78a4..447e21a 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -34,7 +34,7 @@ users = { users.pim = { isNormalUser = true; - extraGroups = [ "wheel" "docker" "input" "wireshark" ]; + extraGroups = [ "wheel" "docker" "input" "wireshark" "dialout" ]; }; }; @@ -124,27 +124,27 @@ wg-quick.interfaces = { home = { privateKeyFile = config.age.secrets.wg-quick-home-privkey.path; - address = [ "10.225.191.4/24" ]; - dns = [ "192.168.30.8" ]; + address = [ "10.225.191.4/24" "fd11:5ee:bad:c0de::4/128" ]; + dns = [ "192.168.30.8" "2a0d:6e00:1a77:30:c8fe:c0ff:feff:ee08" ]; autostart = false; peers = [{ presharedKeyFile = config.age.secrets.wg-quick-home-preshared-key.path; - endpoint = "wg4.geokunis2.nl:51820"; + endpoint = "wg.geokunis2.nl:51820"; publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg="; - allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + allowedIPs = [ "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" ]; + address = [ "10.225.191.4/24" "fd11:5ee:bad:c0de::4/128" ]; + dns = [ "192.168.30.1" "2a0d:6e00:1a77::1" ]; autostart = false; peers = [{ presharedKeyFile = config.age.secrets.wg-quick-home-preshared-key.path; - endpoint = "wg4.geokunis2.nl:51820"; + endpoint = "wg.geokunis2.nl:51820"; publicKey = "fa3mQ7ximJbH7cu2ZbWidto5xBGxEEfWvCCiUDk00Hg="; - allowedIPs = [ "0.0.0.0/0" "::0/0" ]; + allowedIPs = [ "0.0.0.0/0" "::/0" ]; }]; }; };