1
1
Fork 0

Enable SMB shares for user homes

This commit is contained in:
Jaculabilis 2023-05-03 02:01:01 +00:00
parent 3ab66e301f
commit b807fa6703
1 changed files with 19 additions and 14 deletions

View File

@ -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;