From eb0d6a1274f98de0448a9ddb466e2e30d1721895 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 20 Oct 2024 21:11:51 +0200 Subject: ... --- hosts/vidhar/samba.nix | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'hosts/vidhar/samba.nix') diff --git a/hosts/vidhar/samba.nix b/hosts/vidhar/samba.nix index 89d9f12e..58fd435c 100644 --- a/hosts/vidhar/samba.nix +++ b/hosts/vidhar/samba.nix @@ -3,22 +3,22 @@ config = { services.samba = { enable = true; - securityType = "user"; - extraConfig = '' - domain master = yes - workgroup = WORKGROUP - load printers = no - printing = bsd - printcap name = /dev/null - disable spoolss = yes - guest account = nobody - bind interfaces only = yes - interfaces = lo lan - server signing = mandatory - server min protocol = SMB3 - server smb encrypt = required - ''; - shares = { + settings = { + global = { + security = "user"; + "domain master" = true; + workgroup = "WORKGROUP"; + "load printers" = false; + printing = "bsd"; + "printcap name" = "/dev/null"; + "disable spoolss" = true; + "guest account" = "nobody"; + "bind interfaces only" = true; + interfaces = ["lo" "lan"]; + "server signing" = "mandatory"; + "server min protocol" = "SMB3"; + "server smb encrypt" = "required"; + }; homes = { comment = "Home directory for %S"; path = "/home/%S"; -- cgit v1.2.3