blob: f957ba671ef5ff2eee08a61c81512f44106b741c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ config
, pkgs
, ...
}:
let
workgroup = "WORKGROUP";
in
{
services.samba-wsdd = {
inherit workgroup;
enable = true;
};
networking.firewall.allowedTCPPorts = [ 5357 ];
networking.firewall.allowedUDPPorts = [ 3702 ];
services.samba = {
enable = true;
enableNmbd = false;
package = pkgs.samba.override { enableMDNS = true; };
openFirewall = true;
securityType = "user";
extraConfig = ''
workgroup = ${workgroup}
mdns name = mdns
min protocol = smb2
security = user
#use sendfile = yes
guest account = nobody
map to guest = bad user
'';
};
}
|