summaryrefslogtreecommitdiff
path: root/hosts/vidhar/samba.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/vidhar/samba.nix')
-rw-r--r--hosts/vidhar/samba.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/hosts/vidhar/samba.nix b/hosts/vidhar/samba.nix
index cbe158a9..89d9f12e 100644
--- a/hosts/vidhar/samba.nix
+++ b/hosts/vidhar/samba.nix
@@ -4,28 +4,19 @@
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 };
10 extraConfig = '' 7 extraConfig = ''
11 domain master = yes 8 domain master = yes
12 workgroup = WORKGROUP 9 workgroup = WORKGROUP
13 load printers = no 10 load printers = no
14 printing = cups 11 printing = bsd
15 cups server = 10.141.4.1 12 printcap name = /dev/null
13 disable spoolss = yes
16 guest account = nobody 14 guest account = nobody
17 bind interfaces only = yes 15 bind interfaces only = yes
18 interfaces = lo lan 16 interfaces = lo lan
19 server signing = mandatory 17 server signing = mandatory
20 server min protocol = SMB3 18 server min protocol = SMB3
21 server smb encrypt = required 19 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
29 ''; 20 '';
30 shares = { 21 shares = {
31 homes = { 22 homes = {