nixos/profiles/nautilus/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-28 21:08:02 +02:00
{
config,
lib,
pkgs,
...
}:
2023-03-19 12:42:28 +01:00
let
cfg = config.my.profiles.nautilus;
in
{
options.my.profiles.nautilus = with lib; {
enable = mkEnableOption "nautilus profile";
};
config = lib.mkIf cfg.enable {
2023-04-06 23:03:28 +02:00
# make sure gnome parts are there for storing settings
my.profiles.gnome.enable = true;
2023-03-19 12:42:28 +01:00
# enable trash & network-mount
services.gvfs.enable = true;
services.gnome.glib-networking.enable = true; # network-mount
2023-06-22 20:54:16 +02:00
# default-programs
2023-03-19 12:42:28 +01:00
xdg.mime.enable = true;
xdg.icons.enable = true;
environment = {
systemPackages = with pkgs; [
gnome.nautilus
ffmpegthumbnailer # thumbnails
gnome.nautilus-python # enable plugins
gst_all_1.gst-libav # thumbnails
nautilus-open-any-terminal # terminal-context-entry
];
2023-03-19 12:42:28 +01:00
sessionVariables.NAUTILUS_4_EXTENSION_DIR = "${config.system.path}/lib/nautilus/extensions-4";
2024-07-28 21:08:02 +02:00
pathsToLink = [ "/share/nautilus-python/extensions" ];
};
programs.nautilus-open-any-terminal = {
enable = true;
terminal = "foot";
};
2023-03-19 12:42:28 +01:00
};
}