samba: broadcast a lowercase hostname over mdns
Alan Pearce alan@alanpearce.eu
Wed, 19 Apr 2023 15:53:15 +0200
1 files changed, 3 insertions(+), 2 deletions(-)
M system/settings/services/samba.nix → system/settings/services/samba.nix
@@ -15,12 +15,13 @@ networking.firewall.allowedUDPPorts = [ 3702 ]; 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