mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 23:31:54 -05:00
added navidrome container to homelab
This commit is contained in:
parent
7c31d7b0e7
commit
28660914ed
|
@ -6,7 +6,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
# Open TCP ports for audiobookshelf, plex-server, and transmission-server.
|
# Open TCP ports for audiobookshelf, plex-server, and transmission-server.
|
||||||
networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 ];
|
networking.firewall.allowedTCPPorts = [ 51413 13378 32400 9091 4533];
|
||||||
networking.firewall.allowedUDPPorts = [ 51413 ];
|
networking.firewall.allowedUDPPorts = [ 51413 ];
|
||||||
|
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
@ -47,17 +47,30 @@
|
||||||
"/mnt/Media:/Media"
|
"/mnt/Media:/Media"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# nextcloud = {
|
};
|
||||||
# ports = ["0.0.0.0:80:80" ];
|
};
|
||||||
# image = "nextcloud:latest";
|
|
||||||
# environment = {
|
containers.navidrome = {
|
||||||
# TZ = "America/New_York";
|
autoStart = true;
|
||||||
# };
|
bindMounts = {
|
||||||
# volumes = [
|
"/Music" = { hostPath = "/mnt/Media/Music";
|
||||||
# "nextcloud:/var/www/html"
|
isReadOnly = true;
|
||||||
# "/mnt/Media/NextCloud:/var/www/html/data"
|
};
|
||||||
# ];
|
};
|
||||||
# };
|
config = { config, pkgs, lib, ... }: {
|
||||||
|
services.navidrome = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings = {
|
||||||
|
Address = "0.0.0.0";
|
||||||
|
Port = 4533;
|
||||||
|
MusicFolder = "/Music";
|
||||||
|
DefaultTheme = "Auto";
|
||||||
|
SubsonicArtistParticipations = true;
|
||||||
|
DefaultDownsamplingFormat = "aac";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
system.stateVersion = "24.05";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in a new issue