diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-06-28 12:46:13 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-06-28 12:46:13 +0200 |
| commit | a4067140b2dfcd306f13dc51df1abea25ce90500 (patch) | |
| tree | 8ba99f7c84a4fa38eeca492de020ad0bb1df4dc0 | |
| parent | d754b944476eacfe95ef0d7b2b2577758b5205cb (diff) | |
Added wireguard configuration to herra's network config
| -rw-r--r-- | hosts/herra/network.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/herra/network.nix b/hosts/herra/network.nix index eba91ed..06b68ad 100644 --- a/hosts/herra/network.nix +++ b/hosts/herra/network.nix @@ -3,4 +3,27 @@ libimobiledevice ]; services.usbmuxd.enable = true; + + networking.wg-quick.interfaces.wg0 = { + address = [ + "10.9.8.5/32" + "fd42:42:42::5/128" + ]; + + privateKeyFile = "/run/secrets/wg.key"; + + dns = ["1.1.1.1"]; + + peers = [ + { + publicKey = "RflmIMDsWE+APNhVIxlziY9QAfHGLq3k2xQptTFSAWs="; + presharedKeyFile = "/run/secrets/wg.psk"; + endpoint = "89.24.133.226:19100"; + allowedIPs = [ + "0.0.0.0/0" + "::/0" + ]; + } + ]; + }; } |
