From f09ab8fab6d1c6b77d7f6a385f00be115b032e48 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Fri, 3 Jan 2025 00:16:49 -0800 Subject: [PATCH] update samba config for newer nixpkgs --- provision/hosts/torus/samba-server.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/provision/hosts/torus/samba-server.nix b/provision/hosts/torus/samba-server.nix index 44f91698..695233a4 100644 --- a/provision/hosts/torus/samba-server.nix +++ b/provision/hosts/torus/samba-server.nix @@ -2,16 +2,18 @@ { services.samba = { enable = true; - extraConfig = '' - workgroup = WORKGROUP - server string = smbnix - netbios name = smbnix - security = user - hosts allow = 192.168.3. 192.168.1. 127.0.0.1 localhost - hosts deny = 0.0.0.0/0 - guest account = nobody - map to guest = bad user - ''; + settings = { + global = { + "workgroup" = "WORKGROUP"; + "server string" = "smbnix"; + "netbios name" = "smbnix"; + "security" = "user"; + "hosts allow" = [ "192.168.3." "192.168.1." "127.0.0.1" "localhost" ]; + "hosts deny" = "0.0.0.0/0"; + "guest account" = "nobody"; + "map to guest" = "bad user"; + }; + }; shares = { private = {