bigbird: Add initial nas configuration
This commit is contained in:
parent
a367be6426
commit
a89a4b9b4a
5 changed files with 175 additions and 0 deletions
48
bigbird/smb.nix
Normal file
48
bigbird/smb.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
openFirewall = true;
|
||||
## Switch to structured config with NixOS 24.11
|
||||
# settings = {
|
||||
# global = {
|
||||
# "workgroup" = "WORKGROUP";
|
||||
# "hosts allow" = "192.168.";
|
||||
# "hosts deny" = "0.0.0.0/0";
|
||||
# "guest account" = "nobody";
|
||||
# "map to guest" = "bad 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" = {
|
||||
"path" = "/nas/chandler/public";
|
||||
"browseable" = "yes";
|
||||
"read only" = "yes";
|
||||
"guest ok" = "yes"; # aka "public = yes"
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue