jakstpub: nicer smb settings

This commit is contained in:
Motiejus Jakštys 2023-09-22 10:14:10 +03:00
parent 9c1bfd1b24
commit 397fcd4a44

View File

@ -41,26 +41,30 @@ in {
guest account = jakstpub guest account = jakstpub
server role = standalone server server role = standalone server
''; '';
shares = { shares = let
public = { defaults = {
path = cfg.dataDir; "public" = "yes";
writeable = "yes"; "mangled names" = "no";
public = "yes";
"guest ok" = "yes"; "guest ok" = "yes";
"read only" = "no";
"create mask" = "0664";
"directory mask" = "0775";
"force user" = "jakstpub"; "force user" = "jakstpub";
"force group" = "jakstpub"; "force group" = "jakstpub";
}; };
snapshots = { in {
path = cfg.dataDir + "/.zfs/snapshot"; public =
writeable = "no"; defaults
public = "yes"; // {
"guest ok" = "yes"; "path" = cfg.dataDir;
"writeable" = "yes";
"read only" = "no";
"create mask" = "0664";
"directory mask" = "0775";
};
snapshots =
defaults
// {
"path" = cfg.dataDir + "/.zfs/snapshot";
"writeable" = "no";
"read only" = "yes"; "read only" = "yes";
"force user" = "jakstpub";
"force group" = "jakstpub";
}; };
}; };
}; };