move gtk config location to the hm module

This commit is contained in:
jacekpoz 2024-02-14 21:14:45 +01:00
parent de49dd1457
commit df45094b2d
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 4 additions and 1 deletions

View file

@ -155,7 +155,6 @@
HISTFILE = "\${XDG_STATE_HOME}/bash/history"; HISTFILE = "\${XDG_STATE_HOME}/bash/history";
CARGO_HOME = "\${XDG_DATA_HOME}/cargo"; CARGO_HOME = "\${XDG_DATA_HOME}/cargo";
GTK2_RC_FILES = "\${XDG_CONFIG_HOME}/gtk-2.0/gtkrc";
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium"; CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";

View file

@ -5,6 +5,7 @@
... ...
}: with lib; let }: with lib; let
cfg = config.myOptions.themes.gtk; cfg = config.myOptions.themes.gtk;
hmCfg = config.home-manager.users.${config'.username};
in { in {
options.myOptions.themes.gtk = { options.myOptions.themes.gtk = {
enable = mkEnableOption "enable gtk theming"; enable = mkEnableOption "enable gtk theming";
@ -61,6 +62,9 @@ in {
flavor = cfg.variant; flavor = cfg.variant;
}; };
}; };
gtk2 = {
configLocation = "${hmCfg.xdg.configHome}/gtk-2.0/gtkrc";
};
}; };
home.sessionVariables = { home.sessionVariables = {
GTK_THEME = cfg.name; GTK_THEME = cfg.name;