move some stuff into hosts/hostname/profiles
This commit is contained in:
parent
9c9a3d543c
commit
e2946e4a1f
33 changed files with 14 additions and 14 deletions
28
hosts/hopper/profiles/lab/navidrome/default.nix
Normal file
28
hosts/hopper/profiles/lab/navidrome/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
users.users.navidrome.extraGroups = ["media"];
|
||||
|
||||
services.navidrome = {
|
||||
enable = true;
|
||||
package = pkgs.navidrome.overrideAttrs {
|
||||
patches = [./scrobbleAlbumArtist.patch];
|
||||
doCheck = false;
|
||||
};
|
||||
settings = {
|
||||
MusicFolder = "/media/library/music";
|
||||
Address = config.vpnNamespaces."wg".bridgeAddress;
|
||||
EnableSharing = true;
|
||||
};
|
||||
};
|
||||
systemd.services.navidrome.serviceConfig.EnvironmentFile = config.sops.secrets.navidrome.path;
|
||||
|
||||
environment.persistence."/persist".directories = ["/var/lib/navidrome"];
|
||||
|
||||
services.restic.backups.hopper = {
|
||||
paths = ["/var/lib/navidrome"];
|
||||
exclude = ["/var/lib/navidrome/cache"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue