{ inputs, config, pkgs, lib, ... }: let music-organizer = inputs.mytools.packages.${pkgs.system}.music-organizer; in { imports = [ # other profiles ./server.nix ../common/server/samba.nix ../common/server/prometheus.nix ../common/server/grafana.nix ../common/server/traefik.nix ../common/server/transmission.nix ../common/server/unifi.nix ../common/server/gitea.nix ../common/server/rclone.nix ]; environment.systemPackages = with pkgs; [ music-organizer ]; 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" ]; }; }; }