diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-11 17:38:03 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-11 17:38:03 -0400 |
commit | 52f10ca4647e784f4875276b4ff484c21491b389 (patch) | |
tree | 9a6c56dce44a8bb4910c64e0f0c3b0042e3ebcb3 /nix/programs/wireguard/default.nix | |
parent | fix firefox policy (diff) | |
download | dotfiles-nix-52f10ca4647e784f4875276b4ff484c21491b389.tar.gz dotfiles-nix-52f10ca4647e784f4875276b4ff484c21491b389.tar.bz2 dotfiles-nix-52f10ca4647e784f4875276b4ff484c21491b389.zip |
tinternet wg
Diffstat (limited to 'nix/programs/wireguard/default.nix')
-rw-r--r-- | nix/programs/wireguard/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nix/programs/wireguard/default.nix b/nix/programs/wireguard/default.nix index 7e4ab7a..3bddc22 100644 --- a/nix/programs/wireguard/default.nix +++ b/nix/programs/wireguard/default.nix @@ -18,5 +18,18 @@ 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; + + peers = [{ + publicKey = "8Ice49Yc7N75OYJW59ohDbfUjgrkwIuGWKWocJQGgzI="; + allowedIPs = [ "0.0.0.0/0" "::/0" ]; + endpoint = "freya.cat:51282"; + persistentKeepalive = 25; + }]; + }; }; } |