Update modules/server/containers/apps/handbrake.nix
This commit is contained in:
@@ -9,10 +9,7 @@ let
|
||||
in {
|
||||
|
||||
paths = [{
|
||||
path = "${serverCfg.configPath}/handbrake/config";
|
||||
mode = "0755";
|
||||
} {
|
||||
path = "${serverCfg.dataPath}/handbrake/";
|
||||
path = "${serverCfg.path.config}/handbrake";
|
||||
mode = "0755";
|
||||
}];
|
||||
|
||||
@@ -39,9 +36,9 @@ in {
|
||||
|
||||
overrides = {
|
||||
volumes = [
|
||||
"${serverCfg.configPath}/handbrake/config:/config:rw"
|
||||
"${serverCfg.dataPath}/handbrake/watch:/watch:rw"
|
||||
"${serverCfg.dataPath}/handbrake/output:/output:rw"
|
||||
"${serverCfg.path.config}/handbrake:/config:rw"
|
||||
"${serverCfg.path.dlComplete}:/watch:rw"
|
||||
"${serverCfg.path.dlConverted}:/output:rw"
|
||||
];
|
||||
};
|
||||
};
|
||||
@@ -51,7 +48,7 @@ in {
|
||||
setup = {
|
||||
trigger = "server";
|
||||
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