feat: refactor the modules/servers directory.
This commit is contained in:
parent
4e783c052b
commit
8b754d3a7e
69 changed files with 61 additions and 62 deletions
37
modules/servers/per-server/bragi/services/navidrome.nix
Normal file
37
modules/servers/per-server/bragi/services/navidrome.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{config, ...}: {
|
||||
services.navidrome = {
|
||||
enable = true;
|
||||
settings = {
|
||||
MusicFolder = "/mnt/music";
|
||||
BaseUrl = "https://nd.cronyakatsuki.xyz";
|
||||
};
|
||||
environmentFile = "${config.age.secrets.navidrome.path}";
|
||||
};
|
||||
|
||||
systemd.services.navidrome = {
|
||||
after = ["mnt.mount"];
|
||||
bindsTo = ["mnt.mount"];
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.navidrome.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:4533";
|
||||
}
|
||||
];
|
||||
|
||||
routers.navidrome = {
|
||||
rule = "Host(`nd.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "navidrome";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
|
||||
services.restic.backups = {
|
||||
local.paths = ["/var/lib/navidrome"];
|
||||
server.paths = ["/var/lib/navidrome"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue