diff options
| author | makefu <github@syntax-fehler.de> | 2025-05-12 21:02:54 +0200 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2025-05-12 21:02:54 +0200 |
| commit | 6e7c7e592ba13cd8d4ef748efaf1ac80e322af90 (patch) | |
| tree | a8f3e818692a6790d6db07f330d40f6d631669d8 | |
| parent | e84a81735fc095ea5b43b728e9a2aa6b28bb29bc (diff) | |
shack/share: migrate extraConfig to settings
| -rw-r--r-- | krebs/2configs/shack/share.nix | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/krebs/2configs/shack/share.nix b/krebs/2configs/shack/share.nix index bc483e8d0..0ba22af78 100644 --- a/krebs/2configs/shack/share.nix +++ b/krebs/2configs/shack/share.nix @@ -26,21 +26,17 @@ "guest ok" = "yes"; }; }; - extraConfig = '' - guest account = smbguest - map to guest = bad user - # disable printing - load printers = no - printing = bsd - printcap name = /dev/null - disable spoolss = yes - - # for legacy systems - client min protocol = NT1 - server min protocol = NT1 - workgroup = WORKGROUP - server string = ${config.networking.hostName} - netbios name = ${config.networking.hostName} - ''; + settings.global = { + "guest account" = "smbguest"; + "map to guest" = "bad user"; + # disable printing + "load printers" = "no"; + "printing" = "bsd"; + "printcap name" = "/dev/null"; + "disable spoolss" = "yes"; + "workgroup" = "WORKGROUP"; + "server string" = config.networking.hostName; + "netbios name" = config.networking.hostName; + }; }; } |
