about summary refs log tree commit diff
path: root/hosts/common/server/navidrome.nix
blob: e37ccfee3fc7577d7bb22dbe4d4013833000653d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, pkgs, lib, ... }:

{
  services.navidrome = {
    enable = true;
    settings = {
      MusicFolder = "/data/fast/music";
      Address = "0.0.0.0";
      httpPort = "4533";
    };
  };

  services.restic.backups = {
    navidrome = {
      paths = [ "/var/lib/navidrome/" ];
      repository = "/data/slow/backups/systems";
      passwordFile = config.age.secrets.restic-repo-systems.path;
      timerConfig = { OnCalendar = "00:35"; };
      initialize = true;
      extraBackupArgs = [ "--tag navidrome" ];
      pruneOpts = [ "--keep-daily 7" "--keep-weekly 4 --keep-monthly 6" ];
    };
  };
}