From db3e65ac344984dd04cbb9ccda498a0a5dfdd8d5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 9 Feb 2024 16:34:44 +0100 Subject: [PATCH] chore: removed unused wireguard --- hosts/patricknix/default.nix | 1 - hosts/patricknix/wireguard.nix | 43 ------------------------ secrets/wireguard/elisabeth-pre.wg.age | Bin 550 -> 0 bytes secrets/wireguard/elisabeth-priv.wg.age | Bin 474 -> 0 bytes 4 files changed, 44 deletions(-) delete mode 100644 hosts/patricknix/wireguard.nix delete mode 100644 secrets/wireguard/elisabeth-pre.wg.age delete mode 100644 secrets/wireguard/elisabeth-priv.wg.age 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 df3e233c574a8b5fca6db3fd0d73200f03180d29..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 550 zcmY+-yNlCs003YI2MH)Hw~1tME3wZc%_8Q}w7)c|O`0?h#Je=FCQX_&zb0urcpx~c z=;EdzA_z|2Brdwi4GzwNsGFjrk4<7#YJ3`M;dV5Ri4{R5c4*Oyxl0OUR&PpR24NnYz_TkVTclnW}>Jz;#NXuk~83 znh?W?id#IFxH2x`DK}f$TNR#MG#2EZ4LuaME)o02TtRY>WCJA=)zb5oDvWbysMq>! zSx_x;BMVcy;1{_f#dXya%d&&(TGpOsBL?zx#!W^%k_HHdVQ78VPzYOCMRAcbR2Pn1 zQd`iF0o|xD#LVCtEotCOp2^V2i(f~~r?VIS9y~vObM@ZG{fGB|oI3jQ`|jbp^LyXU zy}o#K=H^pZ{_vT(^M3MZ&wb{cKDd31-+HqA{`SVt!|N|SO?~j^)mOMNA4l;&L|nhG diff --git a/secrets/wireguard/elisabeth-priv.wg.age b/secrets/wireguard/elisabeth-priv.wg.age deleted file mode 100644 index 78048a5fafe076b634711060cbd0799ab92e325d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 474 zcmY+-yNlCc003||HIsirmP0Yb_DjAt>7d-#SDNP0OVc*J4no@I)uj1yX`a3Ha1|6? z)LGm_5N>etCQ-pvI0O+V!NmuNf^wt3f8b|27Hx%#xQr4Hhu3iIR5C!&H^?bdtAPgT zg@#ljhUxZXEhzT0)p%m*0;ns?9F?YAB!~k0c*t}*kcbUCC|M<52>C3x+lfA6ct2F; zlsX-kO;zKhj1nwMci8IL5P2CLF||559clg;kqAssfEKx(Xz@UiAZ4wmNoAwEmIp#s zvK5zaR&dVQDl;dRs5Jrny3(E+Y{2rfKwQaiSgKOf@aHkN^&x~Kqw9wd|98#0jwj|M zs>x$~B*YVKM)AZZAK8_b$eQ)Ge30@D&~uAi zcY`gaL