Fix
This commit is contained in:
@@ -24,8 +24,8 @@ let
|
||||
};
|
||||
|
||||
sharedVolumes = [
|
||||
"${serverCfg.dataPath}/media:/media" # Fast hardlinking requires a single shared root
|
||||
"${serverCfg.configPath}/servarr:/config-root"
|
||||
"${serverCfg.path.data}/media:/media" # Fast hardlinking requires a single shared root
|
||||
"${serverCfg.path.config}/servarr:/config-root"
|
||||
];
|
||||
in
|
||||
assert containerCfg.subpath == null || throw "Error: Servarr does not support subpath.";
|
||||
@@ -35,11 +35,11 @@ in
|
||||
|
||||
runtime = {
|
||||
paths = [
|
||||
{ path = "${serverCfg.dataPath}/media/"; mode = "0755"; }
|
||||
{ path = "${serverCfg.configPath}/servarr/prowlarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.configPath}/servarr/radarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.configPath}/servarr/sonarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.configPath}/servarr/lidarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.data}/media/"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config}/servarr/prowlarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config}/servarr/radarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config}/servarr/sonarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config}/servarr/lidarr"; mode = "0755"; }
|
||||
];
|
||||
|
||||
containers = {
|
||||
@@ -63,7 +63,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.configPath}/servarr/prowlarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/prowlarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "radarr" (containerCfg.extra.modules or defaultModules)) {
|
||||
@@ -86,7 +86,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.configPath}/servarr/radarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/radarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "sonarr" (containerCfg.extra.modules or defaultModules)) {
|
||||
@@ -109,7 +109,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.configPath}/servarr/sonarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/sonarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "lidarr" (containerCfg.extra.modules or defaultModules)) {
|
||||
@@ -132,7 +132,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.configPath}/servarr/lidarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/lidarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "readarr" (containerCfg.extra.modules or defaultModules)) {
|
||||
|
||||
Reference in New Issue
Block a user