diff options
Diffstat (limited to 'hosts/vidhar/samba.nix')
-rw-r--r-- | hosts/vidhar/samba.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/hosts/vidhar/samba.nix b/hosts/vidhar/samba.nix index 89d9f12e..cbe158a9 100644 --- a/hosts/vidhar/samba.nix +++ b/hosts/vidhar/samba.nix | |||
@@ -4,19 +4,28 @@ | |||
4 | services.samba = { | 4 | services.samba = { |
5 | enable = true; | 5 | enable = true; |
6 | securityType = "user"; | 6 | securityType = "user"; |
7 | package = pkgs.samba4.override { | ||
8 | enablePrinting = true; | ||
9 | }; | ||
7 | extraConfig = '' | 10 | extraConfig = '' |
8 | domain master = yes | 11 | domain master = yes |
9 | workgroup = WORKGROUP | 12 | workgroup = WORKGROUP |
10 | load printers = no | 13 | load printers = no |
11 | printing = bsd | 14 | printing = cups |
12 | printcap name = /dev/null | 15 | cups server = 10.141.4.1 |
13 | disable spoolss = yes | ||
14 | guest account = nobody | 16 | guest account = nobody |
15 | bind interfaces only = yes | 17 | bind interfaces only = yes |
16 | interfaces = lo lan | 18 | interfaces = lo lan |
17 | server signing = mandatory | 19 | server signing = mandatory |
18 | server min protocol = SMB3 | 20 | server min protocol = SMB3 |
19 | server smb encrypt = required | 21 | server smb encrypt = required |
22 | |||
23 | [printers] | ||
24 | path = /srv/samba-printing | ||
25 | browseable = yes | ||
26 | printable = yes | ||
27 | writable = no | ||
28 | create mode = 0700 | ||
20 | ''; | 29 | ''; |
21 | shares = { | 30 | shares = { |
22 | homes = { | 31 | homes = { |