From de6026cb84a9b514cacfcdf335b78eb72e126230 Mon Sep 17 00:00:00 2001 From: Avery Date: Sun, 29 Jun 2025 15:21:14 +0000 Subject: [PATCH] Install samba to greatyamada --- hosts/greatyamada/services/default.nix | 1 + hosts/greatyamada/services/samba.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 hosts/greatyamada/services/samba.nix diff --git a/hosts/greatyamada/services/default.nix b/hosts/greatyamada/services/default.nix index c21ebc8..2123a2b 100644 --- a/hosts/greatyamada/services/default.nix +++ b/hosts/greatyamada/services/default.nix @@ -11,6 +11,7 @@ ./pgadmin.nix ./postgresql.nix ./radicale.nix + ./samba.nix ./searxng.nix ./vaultwarden.nix ./wireguard.nix diff --git a/hosts/greatyamada/services/samba.nix b/hosts/greatyamada/services/samba.nix new file mode 100644 index 0000000..a044cd5 --- /dev/null +++ b/hosts/greatyamada/services/samba.nix @@ -0,0 +1,20 @@ +{ ... }: { + services.samba = { + enable = true; + openFirewall = true; + settings = { + global = { + "invalid users" = [ "root" ]; + "passwd program" = "/run/wrappers/bin/passwd %u"; + security = "user"; + }; + "PS2" = { + path = "/mnt/hdd-01/PS2"; + browseable = "yes"; + "read only" = "yes"; + "guest ok" = "yes"; + comment = "PS2 game share"; + }; + }; + }; +}