Update modules/server/containers/apps/transmission.nix
This commit is contained in:
@@ -18,15 +18,7 @@ let
|
|||||||
else containerCfg.subdomain;
|
else containerCfg.subdomain;
|
||||||
in {
|
in {
|
||||||
paths = [{
|
paths = [{
|
||||||
path = "${serverCfg.dataPath}/transmission/complete";
|
path = "${serverCfg.path.config}/transmission";
|
||||||
owner = "1000:1000";
|
|
||||||
mode = "0755";
|
|
||||||
}{
|
|
||||||
path = "${serverCfg.dataPath}/transmission/incomplete";
|
|
||||||
owner = "1000:1000";
|
|
||||||
mode = "0755";
|
|
||||||
}{
|
|
||||||
path = "${serverCfg.configPath}/transmission/config";
|
|
||||||
owner = "1000:1000";
|
owner = "1000:1000";
|
||||||
mode = "0755";
|
mode = "0755";
|
||||||
}];
|
}];
|
||||||
@@ -50,11 +42,10 @@ in {
|
|||||||
} else {});
|
} else {});
|
||||||
|
|
||||||
overrides = {
|
overrides = {
|
||||||
cmd = [ ];
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"${serverCfg.dataPath}/transmission/complete:/downloads/complete"
|
"${serverCfg.path.dlComplete}:/downloads/complete"
|
||||||
"${serverCfg.dataPath}/transmission/incomplete:/downloads/incomplete"
|
"${serverCfg.path.dlIncomplete}:/downloads/incomplete"
|
||||||
"${serverCfg.configPath}/transmission/config:/config"
|
"${serverCfg.path.config}/transmission:/config"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -66,7 +57,7 @@ in {
|
|||||||
envFile = [ config.sops.secrets."CUSTOM".path ];
|
envFile = [ config.sops.secrets."CUSTOM".path ];
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
|
|
||||||
${pkgs.gettext}/bin/envsubst < "${../data/transmission/settings.json}" > "${serverCfg.configPath}/transmission/config/settings.json"
|
${pkgs.gettext}/bin/envsubst < "${../data/transmission/settings.json}" > "${serverCfg.path.config}/transmission/config/settings.json"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user