diff options
Diffstat (limited to 'hosts/shinji/wireguard.nix')
-rw-r--r-- | hosts/shinji/wireguard.nix | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/hosts/shinji/wireguard.nix b/hosts/shinji/wireguard.nix index 13669b3..ed0872d 100644 --- a/hosts/shinji/wireguard.nix +++ b/hosts/shinji/wireguard.nix @@ -12,6 +12,7 @@ address = ["10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128"]; dns = ["10.3.0.138"]; privateKeyFile = config.sops.secrets.freyanetWg.path; + autostart = false; peers = [ { @@ -23,17 +24,20 @@ ]; }; - #tinternet = { - # address = [ "69.0.0.2/32" "cafe::2/128" "fe80::2/128" ]; - # dns = [ "1.1.1.1" ]; - # privateKeyFile = config.sops.secrets.tinternetWg.path; + tinternet = { + address = ["69.0.0.2/32" "cafe::2/128" "fe80::2/128"]; + dns = ["1.1.1.1"]; + privateKeyFile = config.sops.secrets.tinternetWg.path; + autostart = false; - # peers = [{ - # publicKey = "8Ice49Yc7N75OYJW59ohDbfUjgrkwIuGWKWocJQGgzI="; - # allowedIPs = [ "0.0.0.0/0" "::/0" ]; - # endpoint = "freya.cat:51282"; - # persistentKeepalive = 25; - # }]; - #}; + peers = [ + { + publicKey = "8Ice49Yc7N75OYJW59ohDbfUjgrkwIuGWKWocJQGgzI="; + allowedIPs = ["0.0.0.0/0" "::/0"]; + endpoint = "freya.cat:51282"; + persistentKeepalive = 25; + } + ]; + }; }; } |