forked from poz/niksos
move gtk config location to the hm module
This commit is contained in:
parent
de49dd1457
commit
df45094b2d
2 changed files with 4 additions and 1 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue