25 lines
710 B
Nix
25 lines
710 B
Nix
{ pkgs, ... }:
|
|
{
|
|
sane.programs.handbrake = {
|
|
sandbox.method = "landlock"; #< also supports bwrap, but landlock ensures we don't write to non-mounted tmpfs dir
|
|
sandbox.wrapperType = "wrappedDerivation";
|
|
sandbox.whitelistDbus = [ "user" ]; # notifications
|
|
sandbox.whitelistWayland = true;
|
|
sandbox.extraHomePaths = [
|
|
"Music"
|
|
"Pictures" # i have some videos in there too.
|
|
"Videos"
|
|
"Videos/servo"
|
|
"tmp"
|
|
];
|
|
sandbox.autodetectCliPaths = true;
|
|
|
|
# disable expensive sambda dependency; i don't use it.
|
|
packageUnwrapped = pkgs.handbrake.override {
|
|
ffmpeg_5-full = pkgs.ffmpeg_5-full.override {
|
|
withSamba = false;
|
|
};
|
|
};
|
|
};
|
|
}
|