From a274189617822cb14250291076add6eb9a02152b Mon Sep 17 00:00:00 2001 From: Nettika Date: Sun, 15 Jun 2025 02:09:03 -0700 Subject: [PATCH] WIP --- hosts/monolith/samba.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 hosts/monolith/samba.nix diff --git a/hosts/monolith/samba.nix b/hosts/monolith/samba.nix new file mode 100644 index 0000000..862aa96 --- /dev/null +++ b/hosts/monolith/samba.nix @@ -0,0 +1,29 @@ +{ ... }: +{ + services.samba = { + enable = true; + openFirewall = true; + settings = { + global = { + workgroup = "WORKGROUP"; + "server string" = "monolith"; + "netbios name" = "monolith"; + security = "user"; + "invalid users" = [ "root" ]; + "guest account" = "nobody"; + "map to guest" = "bad user"; + }; + public = { + path = "/library/share"; + browseable = "yes"; + "read only" = "no"; + "guest ok" = "yes"; + }; + }; + }; + + services.samba-wsdd = { + enable = true; + openFirewall = true; + }; +}