From 5c84ecc6e2cfc358de659d046fc11642abcdf4fc Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Thu, 19 Jun 2025 12:10:42 +0200 Subject: [PATCH] hurricane: 26 current 2025-06-19 12:10:40 25.05.20250615.6c64dab 6.15.2 * GTK WIP --- modules/common.nix | 1 + modules/desktops/hyprland-desktop.nix | 19 -------------- modules/home/gtk.nix | 37 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 19 deletions(-) create mode 100644 modules/home/gtk.nix diff --git a/modules/common.nix b/modules/common.nix index 82b4fc9..5bfda74 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -27,6 +27,7 @@ ./home/hyprlock.nix # Hyprlock screen lock user config ./home/rofi.nix # Rofi user config ./home/ghostty.nix # Ghostty user config + ./home/gtk.nix # GTK user config ]; }; diff --git a/modules/desktops/hyprland-desktop.nix b/modules/desktops/hyprland-desktop.nix index c99f8b8..1d744d3 100644 --- a/modules/desktops/hyprland-desktop.nix +++ b/modules/desktops/hyprland-desktop.nix @@ -58,25 +58,6 @@ binPath = "/run/current-system/sw/bin/Hyprland"; }; }; - - # ================================ - # GTK THEMING CONFIGURATION - # ================================ - # dconf: Configure GTK applications and GNOME settings - dconf = { - enable = true; - profiles.user.databases = [ - { - settings."org/gnome/desktop/interface" = { - gtk-theme = "Gruvbox-Dark-B"; # Dark theme for GTK apps - icon-theme = "Flat-Remix-Red-Dark"; # Icon theme - font-name = "Noto Sans Medium 11"; # UI font - document-font-name = "Noto Sans Medium 11"; # Document font - monospace-font-name = "Intel One Mono Medium 11"; # Terminal/code font - }; - } - ]; - }; }; # ================================ diff --git a/modules/home/gtk.nix b/modules/home/gtk.nix new file mode 100644 index 0000000..f95b57c --- /dev/null +++ b/modules/home/gtk.nix @@ -0,0 +1,37 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + dconf + gruvbox-dark-gtk + ]; + + gtk = { + enable = true; + theme = { + name = "Gruvbox-Dark-B"; + package = pkgs.gruvbox-dark-gtk; + }; + iconTheme = { + name = "Adwaita"; + package = pkgs.adwaita-icon-theme; + }; + cursorTheme = { + name = "Adwaita"; + package = pkgs.adwaita-icon-theme; + }; + }; + + # ================================ + # GTK THEMING CONFIGURATION + # ================================ + # dconf: Configure GTK applications and GNOME settings + dconf = { + enable = true; + settings = { + "org/gnome/desktop/interface" = { + gtk-theme = "Gruvbox-Dark-B"; + + color-scheme = "prefer-dark"; + }; + }; + }; +}