nix-files/hosts/common/programs/sane-open.nix
2024-05-15 01:41:40 +00:00

22 lines
545 B
Nix

{ ... }:
{
sane.programs.sane-open = {
sandbox.method = "bwrap";
sandbox.autodetectCliPaths = "existing"; # for when opening a file
sandbox.whitelistDbus = [ "user" ];
sandbox.extraConfig = [
"--sanebox-keep-namespace" "pid" # to toggle keyboard
];
sandbox.extraHomePaths = [
".local/share/applications"
];
sandbox.extraRuntimePaths = [ "sway" ];
suggestedPrograms = [
"gdbus"
"xdg-utils"
];
mime.associations."application/x-desktop" = "sane-open-desktop.desktop";
};
}