From b2812c877c7b95c7663f6335226a808e822f70c3 Mon Sep 17 00:00:00 2001 From: caley <195605706+cqley@users.noreply.github.com> Date: Sat, 25 Jul 2026 03:04:49 +0200 Subject: Create wireguard.nix --- nixos/hosts/bed/components/wireguard.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nixos/hosts/bed/components/wireguard.nix diff --git a/nixos/hosts/bed/components/wireguard.nix b/nixos/hosts/bed/components/wireguard.nix new file mode 100644 index 0000000..b4f64ec --- /dev/null +++ b/nixos/hosts/bed/components/wireguard.nix @@ -0,0 +1,15 @@ +{ + networking.wireguard.interfaces.wg0 = { + ips = [ "10.0.0.3/24" ]; + privateKeyFile = "/var/lib/wireguard/privatekey"; + + peers = [ + { + publicKey = " "; + endpoint = "5.231.118.254:51820"; + allowedIPs = [ "10.0.0.0/24" ]; + persistentKeepalive = 25; + } + ]; + }; +} -- cgit v1.3.1