From f3a1af9333942e51e341d62c58044bcc1427088e Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 9 Jan 2023 19:19:55 -0800 Subject: [PATCH] Fix GTK theme not applying in some scenarios --- hosts/desktop.nix | 6 ++++++ hosts/home.nix | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/desktop.nix b/hosts/desktop.nix index 4f745cc..d4492e1 100644 --- a/hosts/desktop.nix +++ b/hosts/desktop.nix @@ -32,6 +32,12 @@ in environment.systemPackages = with pkgs; [ yubioath-flutter ]; + environment.sessionVariables = { + # GTK Theme won't display with GTK4 (e.g. nautilus) otherwise + # Doesn't work in some scenarios, such as open containing folder in Firefox, when declared in home.sessionVariables + GTK_THEME = (colors.gtkTheme pkgs).name; + }; + # Enable OpenTabletDriver, GUI configurator is otd-gui hardware.opentabletdriver.enable = true; diff --git a/hosts/home.nix b/hosts/home.nix index b3cff1c..819f83c 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -55,11 +55,6 @@ in stateVersion = "22.05"; - sessionVariables = { - # GTK Theme won't display with GTK4 (e.g. nautilus) otherwise - GTK_THEME = (colors.gtkTheme pkgs).name; - }; - packages = with pkgs; [ # Command line utilities wget