programs: messengers (fractal, signal, dino, tuba): add media libraries to the sandbox

This commit is contained in:
Colin 2024-02-15 00:49:24 +00:00
parent dcc2eb265d
commit b2fcf6fdfd
6 changed files with 49 additions and 0 deletions

View File

@ -52,6 +52,14 @@ in
sandbox.whitelistDbus = [ "user" ]; # notifications
sandbox.whitelistDri = true; #< not strictly necessary, but we need all the perf we can get on moby
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
persist.byStore.private = [ ".local/share/dino" ];

View File

@ -14,6 +14,14 @@
sandbox.whitelistDbus = [ "user" ]; # notifications
sandbox.whitelistDri = true;
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
packageUnwrapped = pkgs.element-desktop.override {
# use pre-build electron because otherwise it takes 4 hrs to build from source.

View File

@ -34,6 +34,14 @@ in
sandbox.whitelistDbus = [ "user" ]; # notifications
sandbox.whitelistDri = true; # otherwise video playback buuuuurns CPU
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
configOption = with lib; mkOption {
default = {};

View File

@ -38,6 +38,14 @@ in
sandbox.whitelistDbus = [ "user" ]; # notifications
sandbox.whitelistDri = true;
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
persist.byStore.private = [
".cache/gtkcord4"

View File

@ -27,6 +27,14 @@ in
sandbox.net = "clearnet";
sandbox.whitelistAudio = true;
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
# creds, media
persist.byStore.private = [

View File

@ -7,6 +7,15 @@
sandbox.whitelistAudio = true;
sandbox.whitelistDbus = [ "user" ]; # notifications
sandbox.whitelistWayland = true;
sandbox.extraHomePaths = [
"Music"
"Pictures"
"Pictures/servo-macros"
"Videos"
"Videos/servo"
"tmp"
];
suggestedPrograms = [ "gnome-keyring" ];
};
}