fix
This commit is contained in:
@@ -23,8 +23,8 @@ let
|
||||
};
|
||||
|
||||
sharedVolumes = [
|
||||
"${serverCfg.path.data}/media:/media" # Fast hardlinking requires a single shared root
|
||||
"${serverCfg.path.config}/servarr:/config-root"
|
||||
"${serverCfg.path.data.path}/media:/media" # Fast hardlinking requires a single shared root
|
||||
"${serverCfg.path.config.path}/servarr:/config-root"
|
||||
];
|
||||
in
|
||||
assert containerCfg.subpath == null || throw "Error: Servarr does not support subpath.";
|
||||
@@ -34,11 +34,11 @@ in
|
||||
|
||||
runtime = {
|
||||
paths = [
|
||||
{ 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"; }
|
||||
{ path = "${serverCfg.path.data.path}/media/"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config.path}/servarr/prowlarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config.path}/servarr/radarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config.path}/servarr/sonarr"; mode = "0755"; }
|
||||
{ path = "${serverCfg.path.config.path}/servarr/lidarr"; mode = "0755"; }
|
||||
];
|
||||
|
||||
containers = {
|
||||
@@ -62,7 +62,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/prowlarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config.path}/servarr/prowlarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "radarr" (containerCfg.extra.modules)) {
|
||||
@@ -85,7 +85,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/radarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config.path}/servarr/radarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "sonarr" (containerCfg.extra.modules)) {
|
||||
@@ -108,7 +108,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/sonarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config.path}/servarr/sonarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "lidarr" (containerCfg.extra.modules )) {
|
||||
@@ -131,7 +131,7 @@ in
|
||||
"--user=0:0"
|
||||
"--passwd-entry=root:x:0:0:root:/root:/bin/sh"
|
||||
];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config}/servarr/lidarr:/config" ];
|
||||
overrides.volumes = sharedVolumes ++ [ "${serverCfg.path.config.path}/servarr/lidarr:/config" ];
|
||||
};
|
||||
|
||||
}// lib.optionalAttrs (builtins.elem "readarr" (containerCfg.extra.modules)) {
|
||||
|
||||
Reference in New Issue
Block a user