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; + }; +}