diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-07-25 03:04:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-25 03:04:49 +0200 |
| commit | b2812c877c7b95c7663f6335226a808e822f70c3 (patch) | |
| tree | a444f0006a7cd9a54cf4beb9c6340fea4a506c51 /nixos | |
| parent | 65794e385667d394fd126e3bc1de30a9874b66d6 (diff) | |
Create wireguard.nix
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/hosts/bed/components/wireguard.nix | 15 |
1 files changed, 15 insertions, 0 deletions
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; + } + ]; + }; +} |
