diff --git a/nixos/loki.nix b/nixos/loki.nix index 3c86da0..37f5379 100644 --- a/nixos/loki.nix +++ b/nixos/loki.nix @@ -95,6 +95,10 @@ openssh = { enable = true; openFirewall = true; permitRootLogin = "no"; passwordAuthentication = false; }; plex = { enable = true; openFirewall = true; group = "users"; }; power-profiles-daemon.enable = true; + samba-wsdd = { + enable = true; + discovery = true; + }; samba = { enable = true; enableNmbd = true; @@ -203,12 +207,14 @@ allowedTCPPorts = [ 445 # SAMBA 139 # SAMBA + 5357 # SAMBA-WSDD 8384 # SYNCTHING 8385 # SYNCTHING ]; allowedUDPPorts = [ 137 # SYNCTHING 138 # SYNCTHING + 3702 # SAMBA-WSDD ]; extraCommands = ''iptables -t raw -A OUTPUT -p udp -m udp --dport 137 -j CT --helper netbios-ns''; };