bigbird: Update samba to structured config for 24.11
This commit is contained in:
parent
5fe97a669d
commit
2f4b5070c6
|
@ -1,42 +1,16 @@
|
||||||
{
|
{
|
||||||
services.samba = {
|
services.samba = {
|
||||||
enable = true;
|
enable = true;
|
||||||
securityType = "user";
|
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
## Switch to structured config with NixOS 24.11
|
settings = {
|
||||||
# settings = {
|
global = {
|
||||||
# global = {
|
"workgroup" = "WORKGROUP";
|
||||||
# "workgroup" = "WORKGROUP";
|
"hosts allow" = "192.168.";
|
||||||
# "hosts allow" = "192.168.";
|
"hosts deny" = "0.0.0.0/0";
|
||||||
# "hosts deny" = "0.0.0.0/0";
|
"guest account" = "nobody";
|
||||||
# "guest account" = "nobody";
|
"map to guest" = "bad user";
|
||||||
# "map to guest" = "bad user";
|
"security" = "user";
|
||||||
# };
|
};
|
||||||
# "public" = {
|
|
||||||
# "path" = "/nas/chandler/Public";
|
|
||||||
# "browseable" = "yes";
|
|
||||||
# "read only" = "yes";
|
|
||||||
# "guest ok" = "yes"; # aka "public = yes"
|
|
||||||
# };
|
|
||||||
# # "private" = {
|
|
||||||
# # "path" = "/mnt/Shares/Private";
|
|
||||||
# # "browseable" = "yes";
|
|
||||||
# # "read only" = "no";
|
|
||||||
# # "guest ok" = "no";
|
|
||||||
# # "create mask" = "0644";
|
|
||||||
# # "directory mask" = "0755";
|
|
||||||
# # "force user" = "username";
|
|
||||||
# # "force group" = "groupname";
|
|
||||||
# # };
|
|
||||||
# };
|
|
||||||
extraConfig = ''
|
|
||||||
workgroup = WORKGROUP
|
|
||||||
hosts allow = 192.168.
|
|
||||||
hosts deny = 0.0.0.0/0
|
|
||||||
guest account = nobody
|
|
||||||
map to guest = bad user
|
|
||||||
'';
|
|
||||||
shares = {
|
|
||||||
"public" = {
|
"public" = {
|
||||||
"path" = "/nas/chandler/public";
|
"path" = "/nas/chandler/public";
|
||||||
"browseable" = "yes";
|
"browseable" = "yes";
|
||||||
|
|
Loading…
Reference in a new issue