samba
This commit is contained in:
parent
915e2d6377
commit
5fc5933f69
1 changed files with 34 additions and 0 deletions
|
@ -160,6 +160,40 @@
|
|||
'';
|
||||
};
|
||||
|
||||
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
|
||||
# =============================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue