helm/modules/themes/default.nix

21 lines
503 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, lib, pkgs, ... }:
{
2020-01-12 15:17:17 -08:00
imports = [ <my/options/theme.nix> ];
# Try really hard to get QT to respect my GTK theme.
my.env = {
GTK_DATA_PREFIX = [ "${config.system.path}" ];
QT_QPA_PLATFORMTHEME = "gtk2";
};
qt5 = {
style = "gtk2";
platformTheme = "gtk2";
2019-08-06 10:56:54 -07:00
};
services.xserver.displayManager.sessionCommands = ''
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/*
'';
}