summary refs log tree commit diff stats
path: root/system/settings
diff options
context:
space:
mode:
Diffstat (limited to 'system/settings')
-rw-r--r--system/settings/services/samba.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/system/settings/services/samba.nix b/system/settings/services/samba.nix
index ae6c6f5a..7ac67f94 100644
--- a/system/settings/services/samba.nix
+++ b/system/settings/services/samba.nix
@@ -15,12 +15,13 @@ in
 
   services.samba = {
     enable = true;
+    enableNmbd = false;
+    package = pkgs.samba.override { enableMDNS = true; };
     openFirewall = true;
     securityType = "user";
     extraConfig = ''
       workgroup = ${workgroup}
-      server string = ${config.networking.hostName}
-      netbios name = ${config.networking.hostName}
+      mdns name = mdns
       security = user
       #use sendfile = yes
       #max protocol = smb2