server7/containers: add samba
This commit is contained in:
parent
9d4376600a
commit
3f1934c2b3
|
@ -52,6 +52,30 @@ name:
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.samba = {
|
||||||
|
enable = true;
|
||||||
|
securityType = "user";
|
||||||
|
extraConfig = ''
|
||||||
|
workgroup = HQ
|
||||||
|
server string = storage
|
||||||
|
netbios name = storage
|
||||||
|
security = share
|
||||||
|
hosts allow = 0.0.0.0/0
|
||||||
|
guest account = k-ot
|
||||||
|
map to guest = bad user
|
||||||
|
'';
|
||||||
|
shares = {
|
||||||
|
files = {
|
||||||
|
path = "/srv/c3d2/files";
|
||||||
|
browseable = "yes";
|
||||||
|
"read only" = "yes";
|
||||||
|
"guest ok" = "yes";
|
||||||
|
"force user" = "k-ot";
|
||||||
|
"force group" = "users";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.enable = false;
|
networking.firewall.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue