diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-08-28 17:08:09 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-08-28 17:08:09 -0400 |
commit | dd00a946434ec72233619e6ca04f3acc2a574e46 (patch) | |
tree | 5853ee743bd37c8712773b5d5e61dd5cf8711aad | |
parent | a0fe58c2ac11b6a9ee6c15d4c807b9801c94de7b (diff) |
vpn config
-rw-r--r-- | modules/steamdeck-wireguard-key.pub | 1 | ||||
-rw-r--r-- | modules/vpn.nix | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/modules/steamdeck-wireguard-key.pub b/modules/steamdeck-wireguard-key.pub new file mode 100644 index 0000000..3b33b7c --- /dev/null +++ b/modules/steamdeck-wireguard-key.pub @@ -0,0 +1 @@ +SPCrouXWKgqWK0omXz+T4mynLhpT6pNSlWGr/9EuJWI= diff --git a/modules/vpn.nix b/modules/vpn.nix index 47c269c..92f6a8e 100644 --- a/modules/vpn.nix +++ b/modules/vpn.nix @@ -22,11 +22,12 @@ let }; firelink = mkConfig "firelink" "2001"; pincer = mkConfig "pincer" "2002"; + steamdeck = mkConfig "steamdeck" "2003"; }; mkPeer = hostConfig: { inherit (hostConfig) publicKey endpoint; - allowedIPs = if hostConfig.router && !cfg.is_server then [ "::/0" ] else hostConfig.ips; + allowedIPs = if hostConfig.router && !cfg.is_server then [ "${vpn-prefix}::/64" ] else hostConfig.ips; }; getPeers = host: |