diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-03 15:03:50 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-03 15:03:50 -0700 |
commit | 1136146b1ffcecfec8cc5662025ef6dc55b987d7 (patch) | |
tree | c3a92eda41213ba584ab55b41c9c3258b4c16512 /hosts/common | |
parent | create a new role for navidrome (diff) | |
download | world-1136146b1ffcecfec8cc5662025ef6dc55b987d7.tar.gz |
Revert "create a new role for navidrome"
This reverts commit 814a495e9c74e3211c6b6640397111115832207b.
Diffstat (limited to '')
-rw-r--r-- | hosts/common/server/navidrome.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hosts/common/server/navidrome.nix b/hosts/common/server/navidrome.nix new file mode 100644 index 0000000..e37ccfe --- /dev/null +++ b/hosts/common/server/navidrome.nix @@ -0,0 +1,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" ]; + }; + }; +} |