mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 18:53:54 -05:00
30 lines
806 B
Nix
30 lines
806 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.";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|