Update modules/server/containers/apps/transmission.nix
This commit is contained in:
@@ -18,15 +18,7 @@ let
|
||||
else containerCfg.subdomain;
|
||||
in {
|
||||
paths = [{
|
||||
path = "${serverCfg.dataPath}/transmission/complete";
|
||||
owner = "1000:1000";
|
||||
mode = "0755";
|
||||
}{
|
||||
path = "${serverCfg.dataPath}/transmission/incomplete";
|
||||
owner = "1000:1000";
|
||||
mode = "0755";
|
||||
}{
|
||||
path = "${serverCfg.configPath}/transmission/config";
|
||||
path = "${serverCfg.path.config}/transmission";
|
||||
owner = "1000:1000";
|
||||
mode = "0755";
|
||||
}];
|
||||
@@ -50,11 +42,10 @@ in {
|
||||
} else {});
|
||||
|
||||
overrides = {
|
||||
cmd = [ ];
|
||||
volumes = [
|
||||
"${serverCfg.dataPath}/transmission/complete:/downloads/complete"
|
||||
"${serverCfg.dataPath}/transmission/incomplete:/downloads/incomplete"
|
||||
"${serverCfg.configPath}/transmission/config:/config"
|
||||
"${serverCfg.path.dlComplete}:/downloads/complete"
|
||||
"${serverCfg.path.dlIncomplete}:/downloads/incomplete"
|
||||
"${serverCfg.path.config}/transmission:/config"
|
||||
];
|
||||
};
|
||||
};
|
||||
@@ -66,7 +57,7 @@ in {
|
||||
envFile = [ config.sops.secrets."CUSTOM".path ];
|
||||
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