diff options
Diffstat (limited to '')
-rw-r--r-- | hosts/common/server/samba.nix | 33 | ||||
-rw-r--r-- | hosts/profiles/nas.nix | 6 |
2 files changed, 5 insertions, 34 deletions
diff --git a/hosts/common/server/samba.nix b/hosts/common/server/samba.nix deleted file mode 100644 index 7df989d..0000000 --- a/hosts/common/server/samba.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - services.samba = { - enable = true; - securityType = "user"; - extraConfig = '' - workgroup = WORKGROUP - server string = tahoe - netbios name = tahoe - security = user - guest account = nobody - mangled names = no - client min protocol = SMB2 - map to guest = bad user - ntlm auth = true - ''; - shares = { - music = { - path = "/data/fast/music"; - browseable = "yes"; - "read only" = "yes"; - "guest ok" = "yes"; - }; - videos = { - path = "/data/fast/videos"; - browseable = "yes"; - "read only" = "yes"; - "guest ok" = "yes"; - }; - }; - }; -} diff --git a/hosts/profiles/nas.nix b/hosts/profiles/nas.nix index 6585766..dcc73e2 100644 --- a/hosts/profiles/nas.nix +++ b/hosts/profiles/nas.nix @@ -2,7 +2,6 @@ imports = [ # other profiles ./server.nix - ../common/server/samba.nix ../common/server/prometheus.nix ../common/server/grafana.nix ../common/server/traefik.nix @@ -20,6 +19,11 @@ isSystemUser = true; }; + my.services.samba = { + enable = true; + publicShares = [ "/data/fast/music" "/data/fast/videos" ]; + }; + services.restic.backups = { media = { paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ]; |