From 90d3720a7597eb140fe1e591ba17a7e5b2e5ad43 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 15 Dec 2024 17:03:07 +0100 Subject: [PATCH] mayushii: Update to new samba options --- machines/mayushii/configuration.nix | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/machines/mayushii/configuration.nix b/machines/mayushii/configuration.nix index e6d0a6b..e4c3b4c 100644 --- a/machines/mayushii/configuration.nix +++ b/machines/mayushii/configuration.nix @@ -37,21 +37,22 @@ services.samba = { enable = true; - securityType = "user"; - extraConfig = '' - interfaces = 192.168.122.1 - bind interfaces only = yes - map to guest = bad user - load printers = no - printing = bsd - disable spoolss = yes - usershare max shares = 0 - acl allow execute always = True + settings = { + global = { + "security type" = "user"; + interfaces = "192.168.122.1"; + "bind interfaces only" = "yes"; + "map to guest" = "bad user"; + "load printers" = "no"; + printing = "bsd"; + "disable spoolss" = "yes"; + "usershare max shares" = 0; + "acl allow execute always" = "True"; + + "server min protocol" = "NT1"; + "ntlm auth" = "ntlmv1-permitted"; + }; - server min protocol = NT1 - ntlm auth = ntlmv1-permitted - ''; - shares = { qemu = { path = "/home/simon/.cache/vm-share"; browseable = "yes";