2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-28 16:13:46 -04:00
|
|
|
options = {
|
2024-03-28 16:40:23 -04:00
|
|
|
homeLab.nixContainers.enable =
|
2024-03-28 16:13:46 -04:00
|
|
|
lib.mkEnableOption "Enables select nix containers.";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf config.homeLab.nixContainers.enable {
|
|
|
|
containers.navidrome = {
|
|
|
|
autoStart = true;
|
|
|
|
bindMounts."/Music".hostPath = "/mnt/Media/Music";
|
2024-04-07 22:16:33 -04:00
|
|
|
config = {
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2024-03-28 16:13:46 -04:00
|
|
|
system.stateVersion = "24.05";
|
|
|
|
services.navidrome = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
settings = {
|
|
|
|
Address = "0.0.0.0";
|
|
|
|
Port = 4533;
|
|
|
|
MusicFolder = "/Music";
|
|
|
|
DefaultTheme = "Auto";
|
|
|
|
SubsonicArtistParticipations = true;
|
|
|
|
UIWelcomeMessage = "Welcome to Navidrome @ raffauflabs.com.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 16:40:23 -04:00
|
|
|
}
|