totoro: enable samba

This commit is contained in:
Luke Granger-Brown 2022-03-05 11:56:22 +00:00
parent f0e645fccb
commit a3eb1e4519

View file

@ -99,9 +99,14 @@ in {
firewall.allowedTCPPorts = [ firewall.allowedTCPPorts = [
80 443 # web 80 443 # web
4001 # ipfs 4001 # ipfs
139 445 # SMB
5357 # samba-wsdd
]; ];
firewall.allowedUDPPorts = [ firewall.allowedUDPPorts = [
4001 # ipfs 4001 # ipfs
137 138 # SMB
3702 # samba-wsdd
]; ];
macvlans.mv-plex = { interface = "br-ext"; }; macvlans.mv-plex = { interface = "br-ext"; };
@ -528,5 +533,29 @@ in {
my.prometheus.additionalExporterPorts.trains = 2112; my.prometheus.additionalExporterPorts.trains = 2112;
services.samba-wsdd = {
enable = true;
workgroup = "WORKGROUP";
hostname = "TOTORO";
interface = "br-ext";
};
services.samba = {
enable = true;
enableNmbd = false; # Eh, SMB1.0
extraConfig = ''
server min protocol = SMB3_11
client min protocol = SMB3_11
restrict anonymous = 2
'';
shares.homes = {
comment = "Home Directories";
browseable = "no";
"read only" = "no";
"create mask" = "0755";
"directory mask" = "0755";
"valid users" = "%S";
};
};
system.stateVersion = "20.03"; system.stateVersion = "20.03";
} }