23 lines
510 B
Nix
23 lines
510 B
Nix
{
|
|
services.samba = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
settings = {
|
|
global = {
|
|
"workgroup" = "WORKGROUP";
|
|
"hosts allow" = "192.168.";
|
|
"hosts deny" = "0.0.0.0/0";
|
|
"guest account" = "nobody";
|
|
"map to guest" = "bad user";
|
|
"security" = "user";
|
|
};
|
|
"public" = {
|
|
"path" = "/nas/chandler/public";
|
|
"browseable" = "yes";
|
|
"read only" = "yes";
|
|
"guest ok" = "yes"; # aka "public = yes"
|
|
};
|
|
};
|
|
};
|
|
}
|