diff options
author | makefu <github@syntax-fehler.de> | 2017-12-08 14:04:35 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2017-12-08 14:04:35 +0100 |
commit | 9bb5921e5e9b2ee3969723b3b18567d8fbce8cea (patch) | |
tree | 4d9c8e5a73222bad3335dc0f0140f976bb58ec59 /2configs/share | |
parent | db9a2f26370f9f68bd9821364658bf4daba602a0 (diff) |
ma wbob.r: enable bureautomation
Diffstat (limited to '2configs/share')
-rw-r--r-- | 2configs/share/wbob.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/2configs/share/wbob.nix b/2configs/share/wbob.nix new file mode 100644 index 000000000..7d3fc38fe --- /dev/null +++ b/2configs/share/wbob.nix @@ -0,0 +1,38 @@ +{config, ... }:{ + networking.firewall.allowedUDPPorts = [ 137 138 ]; + networking.firewall.allowedTCPPorts = [ 139 445 ]; + users.users.smbguest = { + name = "smbguest"; + uid = config.ids.uids.smbguest; + description = "smb guest user"; + home = "/home/share"; + createHome = true; + }; + services.samba = { + enable = true; + enableNmbd = true; + shares = { + incoming = { + path = "/data/incoming"; + "read only" = "no"; + browseable = "yes"; + "guest ok" = "yes"; + }; + data = { + path = "/data/"; + "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 + ''; + }; +} |