From ad40e72fbd8b4cb99738e14177ffe72aefc8fb5b Mon Sep 17 00:00:00 2001 From: Myned Date: Sun, 20 Oct 2024 09:10:49 -0500 Subject: [PATCH] nautilus: add open-any-terminal extension Signed-off-by: Myned --- options/custom/programs/nautilus.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/options/custom/programs/nautilus.nix b/options/custom/programs/nautilus.nix index 5502600..0f24e70 100644 --- a/options/custom/programs/nautilus.nix +++ b/options/custom/programs/nautilus.nix @@ -10,16 +10,21 @@ in { options.custom.programs.nautilus.enable = mkOption {default = false;}; config = mkIf cfg.enable { - services.gvfs.enable = true; # Trash dependency - - # Fix nautilus extension environment - # https://github.com/NixOS/nixpkgs/pull/240780 - #?? echo $NAUTILUS_4_EXTENSION_DIR - services.gnome = { - core-utilities.enable = true; # Required to set environment variables - sushi.enable = true; # Quick preview with spacebar + services = { + gnome.sushi.enable = true; # Quick preview with spacebar + gvfs.enable = true; # Trash dependency }; + # Alternative fix to services.gnome.core-utilities.enable + # https://github.com/NixOS/nixpkgs/pull/240780 + #?? echo $NAUTILUS_4_EXTENSION_DIR + programs.nautilus-open-any-terminal = { + enable = true; + terminal = "kitty"; + }; + + # TODO: Use module when completed + # https://github.com/NixOS/nixpkgs/pull/319535 environment.systemPackages = with pkgs; [ nautilus nautilus-open-in-blackbox