Update modules/server/containers/apps/handbrake.nix
This commit is contained in:
@@ -9,10 +9,7 @@ let
|
|||||||
in {
|
in {
|
||||||
|
|
||||||
paths = [{
|
paths = [{
|
||||||
path = "${serverCfg.configPath}/handbrake/config";
|
path = "${serverCfg.path.config}/handbrake";
|
||||||
mode = "0755";
|
|
||||||
} {
|
|
||||||
path = "${serverCfg.dataPath}/handbrake/";
|
|
||||||
mode = "0755";
|
mode = "0755";
|
||||||
}];
|
}];
|
||||||
|
|
||||||
@@ -39,9 +36,9 @@ in {
|
|||||||
|
|
||||||
overrides = {
|
overrides = {
|
||||||
volumes = [
|
volumes = [
|
||||||
"${serverCfg.configPath}/handbrake/config:/config:rw"
|
"${serverCfg.path.config}/handbrake:/config:rw"
|
||||||
"${serverCfg.dataPath}/handbrake/watch:/watch:rw"
|
"${serverCfg.path.dlComplete}:/watch:rw"
|
||||||
"${serverCfg.dataPath}/handbrake/output:/output:rw"
|
"${serverCfg.path.dlConverted}:/output:rw"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -51,7 +48,7 @@ in {
|
|||||||
setup = {
|
setup = {
|
||||||
trigger = "server";
|
trigger = "server";
|
||||||
script = pkgs.writeShellScript "setup" ''
|
script = pkgs.writeShellScript "setup" ''
|
||||||
mkdir -p ${serverCfg.dataPath}/handbrake/{watch,output}
|
mkdir -p ${serverCfg.path.data}/handbrake/{watch,output}
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user