Enable SMB shares for user homes
This commit is contained in:
parent
3ab66e301f
commit
b807fa6703
|
@ -84,7 +84,7 @@ in {
|
||||||
|
|
||||||
services.rsyncd.enable = true;
|
services.rsyncd.enable = true;
|
||||||
|
|
||||||
/*services.samba =
|
services.samba =
|
||||||
let
|
let
|
||||||
sambaShare = path: validUsers: {
|
sambaShare = path: validUsers: {
|
||||||
path = path;
|
path = path;
|
||||||
|
@ -137,25 +137,30 @@ in {
|
||||||
max log size = 64
|
max log size = 64
|
||||||
|
|
||||||
hide dot files = no
|
hide dot files = no
|
||||||
hosts allow = 10.7.3.
|
hosts allow = 10.22.20., 192.168.1.
|
||||||
map archive = no
|
map archive = no
|
||||||
unix extensions = yes
|
unix extensions = yes
|
||||||
|
|
||||||
ntlm auth = yes
|
ntlm auth = yes
|
||||||
'';
|
'';
|
||||||
shares = {
|
shares = let
|
||||||
audioRO = sambaShareRO "/nas/audio" ''@nas'';
|
homeShare = user: {
|
||||||
docRO = sambaShareRO "/nas/doc/" ''@nas'';
|
path = "/home/${user}";
|
||||||
gameRO = sambaShareRO "/nas/game/" ''@nas'';
|
comment = "${user}'s home folder";
|
||||||
imageRO = sambaShareRO "/nas/image" ''@nas'';
|
browseable = "yes";
|
||||||
videoRO = sambaShareRO "/nas/video" ''@nas'';
|
"read only" = "no";
|
||||||
#audio = sambaShare "/nas/audio" ''@nas'';
|
"guest okay" = "no";
|
||||||
#doc = sambaShare "/nas/doc/" ''@nas'';
|
"create mask" = "0640";
|
||||||
#game = sambaShare "/nas/game/" ''@nas'';
|
"force create mode" = "0640";
|
||||||
#image = sambaShare "/nas/image" ''@nas'';
|
"directory mask" = "0750";
|
||||||
#video = sambaShare "/nas/video" ''@nas'';
|
"force directory mode" = "0750";
|
||||||
|
"valid users" = "${user}";
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
tvb = homeShare "tvb";
|
||||||
|
katydid = homeShare "katydid";
|
||||||
};
|
};
|
||||||
};*/
|
};
|
||||||
|
|
||||||
services.nebula.networks.beatific = lib.recursiveUpdate beatific.nebula-defaults {
|
services.nebula.networks.beatific = lib.recursiveUpdate beatific.nebula-defaults {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue