From 9b8ec24c634efe5e0f1a22217e9665b79c297f7b Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 8 Oct 2023 16:29:47 +0530 Subject: [PATCH] remove wireguard stuff --- hosts/rico2/network.nix | 1 - hosts/rico2/wireguard.nix | 23 ----------------------- hosts/skipper/network.nix | 1 - hosts/skipper/persistence.nix | 1 - hosts/skipper/wireguard.nix | 23 ----------------------- 5 files changed, 49 deletions(-) delete mode 100644 hosts/rico2/wireguard.nix delete mode 100644 hosts/skipper/wireguard.nix diff --git a/hosts/rico2/network.nix b/hosts/rico2/network.nix index 960ada2..6767bbe 100644 --- a/hosts/rico2/network.nix +++ b/hosts/rico2/network.nix @@ -1,5 +1,4 @@ {lib, ...}: { - imports = [./wireguard.nix]; networking = { hostName = "Rico2"; useDHCP = lib.mkDefault false; diff --git a/hosts/rico2/wireguard.nix b/hosts/rico2/wireguard.nix deleted file mode 100644 index f417e87..0000000 --- a/hosts/rico2/wireguard.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - config, - secrets, - ... -}: let - inherit (secrets.wireguard_config) peers; -in { - networking.wireguard = { - enable = true; - interfaces = { - wg0 = { - ips = peers."${config.networking.hostName}".allowedIPs; - privateKeyFile = "/etc/wireguard/private.key"; - generatePrivateKeyFile = true; - listenPort = 51820; - peers = with peers; [ - Proxy - Skipper - ]; - }; - }; - }; -} diff --git a/hosts/skipper/network.nix b/hosts/skipper/network.nix index 80f6208..788fba3 100644 --- a/hosts/skipper/network.nix +++ b/hosts/skipper/network.nix @@ -1,5 +1,4 @@ {lib, ...}: { - imports = [./wireguard.nix]; networking = { hostName = "Skipper"; networkmanager = { diff --git a/hosts/skipper/persistence.nix b/hosts/skipper/persistence.nix index bde026b..c59e3cd 100644 --- a/hosts/skipper/persistence.nix +++ b/hosts/skipper/persistence.nix @@ -5,7 +5,6 @@ _: { "/etc/secureboot" "/etc/ssh/keys" "/etc/systemd/nspawn" - "/etc/wireguard" "/root/.cache/nix" "/var/cache/apparmor" "/var/cache/fwupd" diff --git a/hosts/skipper/wireguard.nix b/hosts/skipper/wireguard.nix deleted file mode 100644 index 0e13f4d..0000000 --- a/hosts/skipper/wireguard.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - config, - secrets, - ... -}: let - inherit (secrets.wireguard_config) peers; -in { - networking.wireguard = { - enable = true; - interfaces = { - wg0 = { - ips = peers."${config.networking.hostName}".allowedIPs; - privateKeyFile = "/etc/wireguard/private.key"; - generatePrivateKeyFile = true; - listenPort = 51820; - peers = with peers; [ - Proxy - Rico2 - ]; - }; - }; - }; -}