aboutsummaryrefslogtreecommitdiff
path: root/hosts/profiles/nas.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-08 16:53:15 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-08 16:53:15 -0700
commit6c1e59b9555853644bfc436a9fb3e3b97de9ba7a (patch)
tree0cd0374ab62d31cd0215da4d63d645af03316729 /hosts/profiles/nas.nix
parentdelete unneeded modules (diff)
downloadinfra-6c1e59b9555853644bfc436a9fb3e3b97de9ba7a.tar.gz
hosts: add services to tahoe
Diffstat (limited to 'hosts/profiles/nas.nix')
-rw-r--r--hosts/profiles/nas.nix42
1 files changed, 0 insertions, 42 deletions
diff --git a/hosts/profiles/nas.nix b/hosts/profiles/nas.nix
deleted file mode 100644
index 5ec18d0..0000000
--- a/hosts/profiles/nas.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{ config, pkgs, lib, ... }: {
- users.groups.nas.gid = 5000;
- users.users.nas = {
- uid = 5000;
- group = "nas";
- isSystemUser = true;
- };
-
- my.services = {
- samba = {
- enable = true;
- publicShares = [ "/data/fast/music" "/data/fast/videos" ];
- };
- navidrome = {
- enable = true;
- musicFolder = "/data/fast/music";
- };
- unifi = { enable = true; };
- prometheus = { enable = true; };
- grafana = { enable = true; };
- gitea = {
- enable = true;
- stateDir = "/var/lib/gitea";
- };
- rclone = { enable = true; };
- traefik = { enable = true; };
- transmission = { enable = true; };
- metrics-exporter = { enable = true; };
- };
-
- services.restic.backups = {
- media = {
- paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ];
- repository = "/data/slow/backups/systems";
- passwordFile = config.age.secrets.restic-repo-systems.path;
- timerConfig = { OnCalendar = "00:55"; };
- initialize = true;
- extraBackupArgs = [ "--tag media" ];
- pruneOpts = [ "--keep-daily 7" "--keep-weekly 4" "--keep-monthly 12" ];
- };
- };
-}