programs: handbrake: sandbox with bwrap
This commit is contained in:
@@ -1,6 +1,20 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
sane.programs.handbrake = {
|
sane.programs.handbrake = {
|
||||||
|
sandbox.method = "bwrap"; #< landlock would be better (prevents output to tmp dirs), but needs work for /mnt/servo-media to function.
|
||||||
|
sandbox.wrapperType = "wrappedDerivation";
|
||||||
|
sandbox.extraHomePaths = [
|
||||||
|
"Music"
|
||||||
|
"Pictures" # i have some videos in there too.
|
||||||
|
"Videos"
|
||||||
|
"tmp"
|
||||||
|
];
|
||||||
|
sandbox.extraPaths = [
|
||||||
|
"/mnt/servo-media/Pictures"
|
||||||
|
"/mnt/servo-media/Videos"
|
||||||
|
];
|
||||||
|
sandbox.autodetectCliPaths = true;
|
||||||
|
|
||||||
# disable expensive sambda dependency; i don't use it.
|
# disable expensive sambda dependency; i don't use it.
|
||||||
packageUnwrapped = pkgs.handbrake.override {
|
packageUnwrapped = pkgs.handbrake.override {
|
||||||
ffmpeg_5-full = pkgs.ffmpeg_5-full.override {
|
ffmpeg_5-full = pkgs.ffmpeg_5-full.override {
|
||||||
|
Reference in New Issue
Block a user