diff --git a/hosts/patricknix/default.nix b/hosts/patricknix/default.nix index 7933b24..5b85a60 100644 --- a/hosts/patricknix/default.nix +++ b/hosts/patricknix/default.nix @@ -30,7 +30,6 @@ ./net.nix ./fs.nix - ./wireguard.nix ../../users/patrick ]; diff --git a/hosts/patricknix/wireguard.nix b/hosts/patricknix/wireguard.nix deleted file mode 100644 index dcae580..0000000 --- a/hosts/patricknix/wireguard.nix +++ /dev/null @@ -1,43 +0,0 @@ -{config, ...}: let - address = [ - "10.0.0.2/32" - ]; - peer = { - endpoint = "lel.lol:51820"; - publicKey = "t/jR2/0hxBXG0Ytah2w5RQ1gn94k0/Ku9LYcbRR7pXo="; - presharedKeyFile = config.age.secrets.wireguard-pre.path; - }; - privateKeyFile = config.age.secrets.wireguard-priv.path; -in { - age.secrets = { - wireguard-pre.rekeyFile = ../../secrets/wireguard/elisabeth-pre.wg.age; - wireguard-priv.rekeyFile = ../../secrets/wireguard/elisabeth-priv.wg.age; - }; - - networking.wg-quick.interfaces = { - wg-intern = { - inherit address privateKeyFile; - peers = [ - (peer - // { - allowedIPs = [ - "10.0.0.1/32" - ]; - }) - ]; - }; - wg-all = { - inherit address privateKeyFile; - peers = [ - (peer - // { - allowedIPs = [ - "0.0.0.0/0" - "::/0" - ]; - }) - ]; - autostart = false; - }; - }; -} diff --git a/secrets/wireguard/elisabeth-pre.wg.age b/secrets/wireguard/elisabeth-pre.wg.age deleted file mode 100644 index df3e233..0000000 Binary files a/secrets/wireguard/elisabeth-pre.wg.age and /dev/null differ diff --git a/secrets/wireguard/elisabeth-priv.wg.age b/secrets/wireguard/elisabeth-priv.wg.age deleted file mode 100644 index 78048a5..0000000 Binary files a/secrets/wireguard/elisabeth-priv.wg.age and /dev/null differ