2023-12-15 02:57:25 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
sane.programs."gnome.nautilus" = {
|
2024-02-28 17:35:40 +00:00
|
|
|
# some of its dbus services don't even refer to real paths
|
|
|
|
packageUnwrapped = pkgs.rmDbusServicesInPlace (pkgs.gnome.nautilus.overrideAttrs (orig: {
|
2023-12-15 02:57:25 +00:00
|
|
|
# enable the "Audio and Video Properties" pane. see: <https://nixos.wiki/wiki/Nautilus>
|
|
|
|
buildInputs = orig.buildInputs ++ (with pkgs.gst_all_1; [
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
]);
|
2024-02-28 17:35:40 +00:00
|
|
|
}));
|
2024-02-15 09:48:26 +00:00
|
|
|
|
2024-04-13 15:51:12 +00:00
|
|
|
suggestedPrograms = [
|
|
|
|
"gvfs" # browse ftp://, etc
|
|
|
|
];
|
|
|
|
|
2024-02-15 10:35:24 +00:00
|
|
|
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-15 10:35:24 +00:00
|
|
|
"knowledge"
|
|
|
|
"nixos"
|
|
|
|
];
|
|
|
|
sandbox.extraPaths = [
|
2024-02-17 15:26:49 +00:00
|
|
|
"/boot"
|
2024-02-23 06:43:27 +00:00
|
|
|
"/mnt/desko"
|
|
|
|
"/mnt/lappy"
|
|
|
|
"/mnt/moby"
|
|
|
|
"/mnt/servo"
|
2024-02-15 10:35:24 +00:00
|
|
|
# "nix"
|
2024-02-17 15:26:49 +00:00
|
|
|
"/run/media" # for mounted devices
|
|
|
|
"/tmp"
|
|
|
|
"/var"
|
2024-02-15 10:35:24 +00:00
|
|
|
];
|
|
|
|
sandbox.extraRuntimePaths = [
|
|
|
|
# not sure if these are actually necessary
|
|
|
|
"gvfs"
|
|
|
|
"gvfsd"
|
|
|
|
];
|
|
|
|
|
2024-02-18 06:49:04 +00:00
|
|
|
mime.priority = 150; #< default is 100, so higher means we fall-back to other apps that might be more specialized
|
2024-02-15 09:48:26 +00:00
|
|
|
mime.associations = {
|
|
|
|
"inode/directory" = "org.gnome.Nautilus.desktop";
|
|
|
|
};
|
2023-12-15 02:57:25 +00:00
|
|
|
};
|
|
|
|
}
|