2020-01-17 01:22:50 -08:00
|
|
|
# modules/themes/default.nix
|
2019-08-06 10:56:54 -07:00
|
|
|
|
2020-01-17 01:22:50 -08:00
|
|
|
{ config, ... }:
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2020-01-17 01:22:50 -08:00
|
|
|
imports = [ ./options.nix ];
|
2020-01-12 15:17:17 -08:00
|
|
|
|
|
|
|
# Try really hard to get QT to respect my GTK theme.
|
2020-01-17 01:22:50 -08:00
|
|
|
my.env.GTK_DATA_PREFIX = [ "${config.system.path}" ];
|
|
|
|
my.env.QT_QPA_PLATFORMTHEME = "gtk2";
|
|
|
|
qt5 = { style = "gtk2"; platformTheme = "gtk2"; };
|
2019-08-06 10:56:54 -07:00
|
|
|
services.xserver.displayManager.sessionCommands = ''
|
2019-12-08 23:56:42 -08:00
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"
|
2019-08-06 10:56:54 -07:00
|
|
|
source "$XDG_CONFIG_HOME"/xsession/*.sh
|
|
|
|
xrdb -merge "$XDG_CONFIG_HOME"/xtheme/*
|
|
|
|
'';
|
|
|
|
}
|