WIP: megapixels: sandbox

This commit is contained in:
2024-02-18 13:53:18 +00:00
parent 600f6eb56c
commit 55c305812d
2 changed files with 21 additions and 0 deletions

View File

@@ -51,6 +51,7 @@
./lemoa.nix ./lemoa.nix
./loupe.nix ./loupe.nix
./mako.nix ./mako.nix
./megapixels.nix
./mepo.nix ./mepo.nix
./mimeo ./mimeo
./mopidy.nix ./mopidy.nix

View File

@@ -0,0 +1,20 @@
{ ... }:
{
sane.programs.megapixels = {
sandbox.method = "bwrap";
sandbox.wrapperType = "wrappedDerivation";
sandbox.whitelistDri = true;
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"tmp"
"Pictures"
];
sandbox.extraPaths = [
# needs /dev/media*, /dev/video*; easier to give it all of /dev which isn't that bad since it's not running as root.
"/dev"
# it passes the raw .dng files to a post-processor, via /tmp
"/tmp"
];
# TODO: surely needs access to the camera device, etc.
};
}