wireguard: add sftp.losurdo.wg
authorJulien Moutinho <julm+julm-nix@sourcephile.fr>
Fri, 19 Nov 2021 03:44:18 +0000 (04:44 +0100)
committerSéverine Popek <severine.popek@autistici.org>
Tue, 30 Nov 2021 11:43:12 +0000 (12:43 +0100)
nixos/profiles/wireguard/wg-intra.nix

index 2cbd61f3c1c9c475ff2084bf7f0367d79fc39488..47fe251024b05c47cbe4ff5a096ea6537768568e 100644 (file)
@@ -39,10 +39,13 @@ networking.wireguard.interfaces.${iface} = lib.recursiveUpdate
 networking.hosts = lib.mkMerge [
   (lib.mapAttrs' (hostName: host:
     lib.nameValuePair host.ipv4 [ "${hostName}.wg" ]) peers)
-  { "${peers.losurdo.ipv4}" = [
-    "nix-extracache.losurdo.wg"
-    "nix-localcache.losurdo.wg"
-  ]; }
+  {
+    "${peers.losurdo.ipv4}" = [
+      "nix-extracache.losurdo.wg"
+      "nix-localcache.losurdo.wg"
+      "sftp.losurdo.wg"
+    ];
+  }
 ];
 networking.firewall.extraCommands = lib.optionalString (wg.listenPort != null) ''
   ip46tables -A nixos-fw -i any -p udp -m udp --dport ${toString wg.listenPort} -j ACCEPT