my nix configs for my servers and desktop

samba

Changed files
+34
hosts
valefar
+34
hosts/valefar/default.nix
···
'';
};
+
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
# =============================================================================