summaryrefslogtreecommitdiff
path: root/hosts/vidhar/samba.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-04 19:23:36 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-04 19:23:36 +0100
commit29480b6e86ca6057d4151accdb5d4103f1657596 (patch)
treeaad8ef8a38f2b679ff64039d6a2445eba9041d09 /hosts/vidhar/samba.nix
parent7fcaba2d4cabc8d5dfd35648ec1b9b6795e490ec (diff)
downloadnixos-29480b6e86ca6057d4151accdb5d4103f1657596.tar
nixos-29480b6e86ca6057d4151accdb5d4103f1657596.tar.gz
nixos-29480b6e86ca6057d4151accdb5d4103f1657596.tar.bz2
nixos-29480b6e86ca6057d4151accdb5d4103f1657596.tar.xz
nixos-29480b6e86ca6057d4151accdb5d4103f1657596.zip
...
Diffstat (limited to 'hosts/vidhar/samba.nix')
-rw-r--r--hosts/vidhar/samba.nix15
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 = {