mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-26 19:51:54 -05:00
39 lines
851 B
Nix
39 lines
851 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
homeLab.nixContainers.enable =
|
|
lib.mkEnableOption "Enables select nix containers.";
|
|
};
|
|
|
|
config = lib.mkIf config.homeLab.nixContainers.enable {
|
|
containers.navidrome = {
|
|
autoStart = true;
|
|
bindMounts."/Music".hostPath = "/mnt/Media/Music";
|
|
config = {
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
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.";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|