From 0fe26361d3f428b3901784f24635d01ff0c1a41e Mon Sep 17 00:00:00 2001 From: jmug Date: Tue, 3 Jun 2025 20:43:43 -0700 Subject: [PATCH] [Asahi] Adding a global panelight gtk theme. Signed-off-by: jmug --- hosts/asahi/configuration.nix | 2 ++ hosts/asahi/home.nix | 29 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/hosts/asahi/configuration.nix b/hosts/asahi/configuration.nix index a2117ff..9e7d2af 100644 --- a/hosts/asahi/configuration.nix +++ b/hosts/asahi/configuration.nix @@ -110,6 +110,8 @@ # Terminal ghostty.packages.aarch64-linux.default kitty + # Theming + palenight-theme ]; fonts = { diff --git a/hosts/asahi/home.nix b/hosts/asahi/home.nix index 89a656e..e15301a 100644 --- a/hosts/asahi/home.nix +++ b/hosts/asahi/home.nix @@ -58,6 +58,35 @@ in stateVersion = "25.05"; # Do not change!!! }; + gtk = { + enable = true; + gtk3 = { + extraConfig = { + gtk-application-prefer-dark-theme = 1; + }; + }; + gtk4 = { + extraConfig = { + gtk-application-prefer-dark-theme = 1; + }; + }; + theme = { + name = "palenight"; + package = pkgs.palenight-theme; + }; + }; + dconf.settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + }; + xdg.configFile = { + "gtk-4.0/assets".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/assets"; + "gtk-4.0/gtk.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk.css"; + "gtk-4.0/gtk-dark.css".source = "${config.gtk.theme.package}/share/themes/${config.gtk.theme.name}/gtk-4.0/gtk-dark.css"; + }; + + programs.walker = { enable = true;