2024-02-18 06:32:20 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
sane.programs.portfolio-filemanager = {
|
|
|
|
# this is all taken pretty directly from nautilus config
|
|
|
|
sandbox.method = "bwrap";
|
|
|
|
sandbox.whitelistDbus = [ "user" ]; # for portals launching apps
|
|
|
|
sandbox.whitelistWayland = true;
|
|
|
|
sandbox.extraHomePaths = [
|
|
|
|
# grant access to pretty much everything, except for secret keys.
|
2024-02-23 06:43:27 +00:00
|
|
|
"/"
|
|
|
|
".persist/ephemeral"
|
|
|
|
".persist/plaintext"
|
2024-02-18 06:32:20 +00:00
|
|
|
"knowledge"
|
|
|
|
"nixos"
|
|
|
|
];
|
|
|
|
sandbox.extraPaths = [
|
|
|
|
"/boot"
|
2024-02-23 06:43:27 +00:00
|
|
|
"/mnt/desko"
|
|
|
|
"/mnt/lappy"
|
|
|
|
"/mnt/moby"
|
|
|
|
"/mnt/servo"
|
2024-02-18 06:32:20 +00:00
|
|
|
# "nix"
|
|
|
|
"/run/media" # for mounted devices
|
|
|
|
"/tmp"
|
|
|
|
"/var"
|
|
|
|
];
|
|
|
|
sandbox.extraRuntimePaths = [
|
|
|
|
# not sure if these are actually necessary
|
|
|
|
"gvfs"
|
|
|
|
"gvfsd"
|
|
|
|
];
|
|
|
|
|
|
|
|
mime.priority = 160; #< default is 100, so higher means we fall-back to other apps that might be more specialized
|
|
|
|
mime.associations = {
|
|
|
|
"inode/directory" = "dev.tchx84.Portfolio.desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|