go2tv: sandbox with bwrap

This commit is contained in:
Colin 2024-01-27 15:31:08 +00:00
parent ff356fdd49
commit 770db96ec6

View File

@ -32,6 +32,21 @@ let
cfg = config.sane.programs.go2tv;
in
{
sane.programs.go2tv = {
sandbox.method = "bwrap";
sandbox.extraConfig = [
"--sane-sandbox-autodetect"
];
# for GUI invocation, allow the common media directories
sandbox.extraHomePaths = [
"Music"
"Videos"
];
sandbox.extraPaths = [
"/mnt/servo-media/Music"
"/mnt/servo-media/Videos"
];
};
# for serving local files
# see: go2tv/soapcalls/utils/iptools.go
# go2tv tries port 3500, and then walks up from there port-by-port until it finds a free one.