diff options
author | makefu <github@syntax-fehler.de> | 2016-02-01 22:01:41 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-02-01 22:01:41 +0100 |
commit | 44e0c5153ca6a65ee130f30ea8466906deedcada (patch) | |
tree | 489f6668c657af1a80d0bab07b42e9db7dc997d5 /makefu/2configs | |
parent | 40b13f240888be643e19939ceef79483aeb07ca5 (diff) |
ma 1 omo: add shares
Diffstat (limited to 'makefu/2configs')
-rw-r--r-- | makefu/2configs/omo-share.nix (renamed from makefu/2configs/nginx/omo-share.nix) | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/makefu/2configs/nginx/omo-share.nix b/makefu/2configs/omo-share.nix index ce85e0442..1e0975e1d 100644 --- a/makefu/2configs/nginx/omo-share.nix +++ b/makefu/2configs/omo-share.nix @@ -31,4 +31,38 @@ in { }; }; }; + + # samba share /media/crypt1/share + users.users.smbguest = { + name = "smbguest"; + uid = config.ids.uids.smbguest; + description = "smb guest user"; + home = "/var/empty"; + }; + services.samba = { + enable = true; + shares = { + winshare = { + path = "/media/crypt1/share"; + "read only" = "no"; + browseable = "yes"; + "guest ok" = "yes"; + }; + usenet = { + path = "/media/crypt0/usenet/dst"; + "read only" = "yes"; + browseable = "yes"; + "guest ok" = "yes"; + }; + }; + extraConfig = '' + guest account = smbguest + map to guest = bad user + # disable printing + load printers = no + printing = bsd + printcap name = /dev/null + disable spoolss = yes + ''; + }; } |