diff options
author | Freya Murphy <freya@freyacat.org> | 2025-08-23 23:46:09 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-08-23 23:48:12 -0400 |
commit | a8eb28cae794f614a7c73d22d58b417eb8f3e7fc (patch) | |
tree | 978ecf8f55a7fc619e4d5cea92a581d89e98826a /hosts/shinji/wireguard.nix | |
parent | update commits (diff) | |
download | dotfiles-nix-a8eb28cae794f614a7c73d22d58b417eb8f3e7fc.tar.gz dotfiles-nix-a8eb28cae794f614a7c73d22d58b417eb8f3e7fc.tar.bz2 dotfiles-nix-a8eb28cae794f614a7c73d22d58b417eb8f3e7fc.zip |
update wireguard configs
Diffstat (limited to 'hosts/shinji/wireguard.nix')
-rw-r--r-- | hosts/shinji/wireguard.nix | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/hosts/shinji/wireguard.nix b/hosts/shinji/wireguard.nix index ed0872d..8e42f9d 100644 --- a/hosts/shinji/wireguard.nix +++ b/hosts/shinji/wireguard.nix @@ -9,32 +9,16 @@ networking.wg-quick.interfaces = { freyanet = { - address = ["10.2.0.2/32" "fd:cafe:dead:bee::2/128" "fe80::2/128"]; - dns = ["10.3.0.138"]; + address = ["10.3.0.3/32"]; + dns = ["10.2.0.1"]; privateKeyFile = config.sops.secrets.freyanetWg.path; autostart = false; peers = [ { publicKey = "x0ykwakpYCvI/pG+nR83lNUyeOE9m54thnX3bvZ+FUk="; - allowedIPs = ["10.0.0.0/14" "fd:cafe::/32"]; - endpoint = "cid.freya.cat:3000"; - persistentKeepalive = 25; - } - ]; - }; - - 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"; + allowedIPs = ["10.0.0.0/8"]; + endpoint = "freya.cat:3000"; persistentKeepalive = 25; } ]; |