diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-12 19:59:53 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-12 19:59:53 -0800 |
commit | 85fca14d01860ebc3694d0596663c3c22e9edf48 (patch) | |
tree | f6a131a8529597ec05917dbfb8215f538501e821 /hosts/common | |
parent | desktop: element and theme (diff) | |
download | world-85fca14d01860ebc3694d0596663c3c22e9edf48.tar.gz |
hosts: add profiles
Profiles contain a collection of modules.
Diffstat (limited to 'hosts/common')
-rw-r--r-- | hosts/common/nas.nix | 34 | ||||
-rw-r--r-- | hosts/common/server/default.nix | 7 |
2 files changed, 0 insertions, 41 deletions
diff --git a/hosts/common/nas.nix b/hosts/common/nas.nix deleted file mode 100644 index dd6d81d..0000000 --- a/hosts/common/nas.nix +++ /dev/null @@ -1,34 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - imports = [ - ./server/default.nix - ./server/samba.nix - ./server/prometheus.nix - ./server/grafana.nix - ./server/traefik.nix - ./server/transmission.nix - ./server/unifi.nix - ./server/gitea.nix - ./server/rclone.nix - ]; - - users.groups.nas.gid = 5000; - users.users.nas = { - uid = 5000; - group = "nas"; - isSystemUser = true; - }; - - services.restic.backups = { - media = { - paths = [ "/data/fast/music" "/data/fast/photos" ]; - 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" ]; - }; - }; -} diff --git a/hosts/common/server/default.nix b/hosts/common/server/default.nix deleted file mode 100644 index 2986f66..0000000 --- a/hosts/common/server/default.nix +++ /dev/null @@ -1,7 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - imports = [ - ./monitoring.nix - ]; -} |