improvements
This commit is contained in:
parent
3ab713a5b3
commit
4bc84394c4
23 changed files with 289 additions and 74 deletions
24
hosts/abacus/navidrome.nix
Normal file
24
hosts/abacus/navidrome.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{config, ...}: {
|
||||
services.navidrome = {
|
||||
enable = true;
|
||||
settings = {
|
||||
Address = "127.0.0.1";
|
||||
Port = 8030;
|
||||
MusicFolder = "/srv/music";
|
||||
};
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."navi.${config.networking.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
quic = true;
|
||||
|
||||
locations."/".proxyPass = "http://${config.services.navidrome.settings.Address}:${builtins.toString config.services.navidrome.settings.Port}";
|
||||
};
|
||||
|
||||
fileSystems.${config.services.navidrome.settings.MusicFolder} = {
|
||||
device = "/dev/disk/by-label/music";
|
||||
fsType = "btrfs";
|
||||
options = ["compress=zstd" "noatime"];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue