1

Fix container module bug

This commit is contained in:
2023-05-24 23:44:54 +02:00
parent 7f992fe3d7
commit 4f19f00716
2 changed files with 16 additions and 14 deletions

View File

@ -16,16 +16,16 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
# Home Automation # Home Automation
homeassistant = mkIf cfg.homeassistant.enable mkOciContainer { homeassistant = mkIf cfg.homeassistant.enable (mkOciContainer {
image = "homeassistant/home-assistant:2023:5"; image = "homeassistant/home-assistant:2023:5";
id-ports = [8123]; id-ports = [8123];
vols = [ vols = [
"homeassistant-config:/config:Z" "homeassistant-config:/config:Z"
]; ];
}; });
# Multimedia # Multimedia
jellyfin = mkIf cfg.jellyfin.enable mkOciContainer { jellyfin = mkIf cfg.jellyfin.enable (mkOciContainer {
image = "linuxserver/jellyfin:10.8.10"; image = "linuxserver/jellyfin:10.8.10";
id-ports = [8096]; id-ports = [8096];
vols = [ vols = [
@ -35,9 +35,9 @@ in {
"/home/christoph/Videos/Picture:/media/Picture" "/home/christoph/Videos/Picture:/media/Picture"
"/home/christoph/GameHDD/Video:/media/Video2" "/home/christoph/GameHDD/Video:/media/Video2"
]; ];
}; });
fileflows = mkIf cfg.fileflows.enable mkOciContainer { fileflows = mkIf cfg.fileflows.enable (mkOciContainer {
image = "revenz/fileflows"; image = "revenz/fileflows";
id-ports = [5000]; id-ports = [5000];
vols = [ vols = [
@ -45,10 +45,10 @@ in {
"fileflows-data:/app/Data:Z" "fileflows-data:/app/Data:Z"
"/home/christoph/Videos/Video:/media" "/home/christoph/Videos/Video:/media"
]; ];
}; });
# Errr... # Errr...
sonarr = mkIf cfg.sonarr.enable mkOciContainer { sonarr = mkIf cfg.sonarr.enable (mkOciContainer {
image = "linuxserver/sonarr:3.0.10"; image = "linuxserver/sonarr:3.0.10";
id-ports = [8989]; id-ports = [8989];
vols = [ vols = [
@ -58,9 +58,9 @@ in {
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
}; });
radarr = mkIf cfg.radarr.enable mkOciContainer { radarr = mkIf cfg.radarr.enable (mkOciContainer {
image = "linuxserver/radarr:4.4.4"; image = "linuxserver/radarr:4.4.4";
id-ports = [7878]; id-ports = [7878];
vols = [ vols = [
@ -70,9 +70,9 @@ in {
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
}; });
hydra = mkIf cfg.hydra.enable mkOciContainer { hydra = mkIf cfg.hydra.enable (mkOciContainer {
image = "linuxserver/nzbhydra2:5.1.8"; image = "linuxserver/nzbhydra2:5.1.8";
id-ports = [5076]; id-ports = [5076];
vols = [ vols = [
@ -81,9 +81,9 @@ in {
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
}; });
sabnzbd = mkIf cfg.sabnzbd.enable mkOciContainer { sabnzbd = mkIf cfg.sabnzbd.enable (mkOciContainer {
image = "linuxserver/sabnzbd:4.0.1"; image = "linuxserver/sabnzbd:4.0.1";
id-ports = [8080]; id-ports = [8080];
vols = [ vols = [
@ -93,7 +93,7 @@ in {
]; ];
netns = "wg0-de-115"; netns = "wg0-de-115";
netdns = "10.2.0.1"; netdns = "10.2.0.1";
}; });
}; };
}; };
} }

View File

@ -16,6 +16,8 @@
modules = { modules = {
containers = { containers = {
enable = true;
homeassistant.enable = false; homeassistant.enable = false;
jellyfin.enable = true; jellyfin.enable = true;
fileflows.enable = false; fileflows.enable = false;