From dab608bb6c38e44ca03646469007d5f69804b5cc Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 4 Apr 2024 10:13:02 -0400 Subject: [PATCH] meta: Merge thunar module with desktop Thunar is an opinionated file manager that we're using as the GUI application of choice because it handles directories with large files *significantly* better than Nautilus. It also supports image previews for files that have been trashed, as well as a slew of other convenience features such as a built-in auto-renaming tool. --- modules/desktop.nix | 17 ++++++++++++++++- modules/thunar.nix | 23 ----------------------- 2 files changed, 16 insertions(+), 24 deletions(-) delete mode 100644 modules/thunar.nix diff --git a/modules/desktop.nix b/modules/desktop.nix index d68b8c5e..0d8b673a 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -2,6 +2,8 @@ let inherit (lib) mkEnableOption mkIf; + inherit (pkgs.xfce) thunar-volman exo; + inherit (pkgs) glib; cfg = config.modules.desktop; in @@ -12,7 +14,14 @@ in }; config = with cfg; { - programs.hyprland.enable = true; + programs = { + hyprland.enable = true; + + thunar = { + enable = true; + plugins = [ thunar-volman ]; + }; + }; i18n.inputMethod = mkIf japanese { enabled = "fcitx5"; @@ -44,6 +53,10 @@ in pulse.enable = true; }; + + tumbler.enable = true; + gvfs.enable = true; + gnome.gnome-keyring.enable = true; }; environment.systemPackages = with pkgs; [ @@ -63,6 +76,8 @@ in signal-desktop ungoogled-chromium qbittorrent + exo + glib ]; services.greetd = { diff --git a/modules/thunar.nix b/modules/thunar.nix deleted file mode 100644 index a40151c3..00000000 --- a/modules/thunar.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ pkgs, ... }: - -let - inherit (pkgs.xfce) thunar-volman exo; - inherit (pkgs) glib; -in -{ - programs.thunar = { - enable = true; - plugins = [ thunar-volman ]; - }; - - services = { - tumbler.enable = true; - gvfs.enable = true; - gnome.gnome-keyring.enable = true; - }; - - environment.systemPackages = [ - exo - glib - ]; -}