From 63d4a1b452e5dde2035d124fd753d6045454aa18 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 1 Jun 2025 22:07:00 -0700 Subject: [PATCH] feat: replace thunar with nautilus --- .../desktop-environment/hyprland/binds.nix | 2 +- .../hyprland/windowrules.nix | 2 +- hm/modules/linux/programs/bulk-programs.nix | 19 ++++++++++++++++++- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/hm/modules/linux/desktop-environment/hyprland/binds.nix b/hm/modules/linux/desktop-environment/hyprland/binds.nix index 43e03cb..8d3ea11 100644 --- a/hm/modules/linux/desktop-environment/hyprland/binds.nix +++ b/hm/modules/linux/desktop-environment/hyprland/binds.nix @@ -75,7 +75,7 @@ in # Application Keybinds "$mod, R, exec, ${pkgs.pavucontrol}/bin/pavucontrol -t 3" # open pavucontrol on 'outputs' tab "$mod, T, exec, ${pkgs.kitty}/bin/kitty" - "$mod, E, exec, ${pkgs.xfce.thunar}/bin/thunar" + "$mod, E, exec, ${lib.getExe pkgs.nautilus}" "$mod, M, exec, ${pkgs.thunderbird}/bin/thunderbird" ]); diff --git a/hm/modules/linux/desktop-environment/hyprland/windowrules.nix b/hm/modules/linux/desktop-environment/hyprland/windowrules.nix index 017128d..3b1b8ca 100644 --- a/hm/modules/linux/desktop-environment/hyprland/windowrules.nix +++ b/hm/modules/linux/desktop-environment/hyprland/windowrules.nix @@ -22,7 +22,7 @@ "opacity 0.80 0.80,class:^(kitty)$" "opacity 0.80 0.80,class:^(neovide)$" "opacity 0.80 0.80,class:^(org.kde.dolphin)$" - "opacity 0.80 0.80,class:^(thunar)$" + "opacity 0.80 0.80,class:^(org.gnome.Nautilus)$" "opacity 0.80 0.80,class:^(org.kde.ark)$" "opacity 0.80 0.80,class:^(nwg-look)$" "opacity 0.80 0.80,class:^(qt5ct)$" diff --git a/hm/modules/linux/programs/bulk-programs.nix b/hm/modules/linux/programs/bulk-programs.nix index fea2a05..bd8cf07 100644 --- a/hm/modules/linux/programs/bulk-programs.nix +++ b/hm/modules/linux/programs/bulk-programs.nix @@ -37,6 +37,23 @@ in programs.vesktop.enable = lib.mkIf cfg.instantMessaging.enable true; + nixpkgs.overlays = [ + (self: super: { + gnome = super.gnome.overrideScope' ( + gself: gsuper: { + nautilus = gsuper.nautilus.overrideAttrs (nsuper: { + buildInputs = + nsuper.buildInputs + ++ (with super.gst_all_1; [ + gst-plugins-good + gst-plugins-bad + ]); + }); + } + ); + }) + ]; + home.packages = lib.optionals cfg.archiveTools.enable ( with pkgs; @@ -78,7 +95,7 @@ in with pkgs; [ thunderbird - xfce.thunar + nautilus nicotine-plus # soulseek client gapless # music player ]