mirror of
https://git.feal.no/felixalb/nixos-config.git
synced 2024-12-23 04:27:31 +01:00
21 lines
509 B
Nix
21 lines
509 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
let
|
||
|
domain = "music.feal.no";
|
||
|
cfg = config.services.navidrome;
|
||
|
in {
|
||
|
services.navidrome = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
BaseUrl = "https://${domain}";
|
||
|
EnableSharing = true;
|
||
|
EnableTranscodingConfig = true;
|
||
|
MusicFolder = "/tank/media/music/";
|
||
|
SubsonicArtistParticipations = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts."${domain}".locations."/" = {
|
||
|
proxyPass = "http://${cfg.settings.Address}:${toString cfg.settings.Port}";
|
||
|
};
|
||
|
}
|