1
0
Fork 0
puter/hosts/abacus/navidrome.nix

33 lines
714 B
Nix
Raw Normal View History

2025-05-11 22:49:04 +02:00
{ config, ... }:
let
2025-03-23 22:48:46 +01:00
virtualHostName = "navidrome.helveticanonstandard.net";
2025-05-11 22:49:04 +02:00
in
{
2024-09-15 14:16:32 +02:00
services.navidrome = {
enable = true;
settings = {
Address = "localhost";
Port = 8050;
MusicFolder = "/srv/music";
2025-04-02 15:35:50 +00:00
EnableSharing = true;
2025-05-18 04:24:31 +02:00
# Backup = {
# Path = "/srv/backup/navidrome";
# Count = 1;
# Schedule = "0 2 * * *";
# };
2024-09-15 14:16:32 +02:00
};
};
services.nginx.virtualHosts.${virtualHostName} = {
enableACME = true;
forceSSL = true;
2025-05-11 22:49:04 +02:00
locations."/".proxyPass =
let
host = config.services.navidrome.settings.Address;
port = builtins.toString config.services.navidrome.settings.Port;
in
"http://${host}:${port}";
2024-09-15 14:16:32 +02:00
};
}