This commit is contained in:
waveringana 2025-06-18 22:46:15 -04:00
parent 915e2d6377
commit 5fc5933f69

View file

@ -160,6 +160,40 @@
'';
};
services.samba = {
enable = true;
securityType = "user";
settings = {
global = {
"workgroup" = "WORKGROUP";
"server string" = "smbnix";
"netbios name" = "smbnix";
"security" = "user";
"hosts allow" = "100.64. 10.0.0. 127.0.0.1 localhost";
"hosts deny" = "0.0.0.0/0";
"guest account" = "nobody";
"map to guest" = "bad user";
"guest ok" = "yes";
"public" = "yes";
};
"storage" = {
"path" = "/storage";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "yes";
"public" = "yes";
"force user" = "nobody";
"force group" = "nogroup";
"create mask" = "0666";
"directory mask" = "0777";
};
};
};
services.samba-wsdd = {
enable = true;
openFirewall = true;
};
# =============================================================================
# SERVICES
# =============================================================================