Ensure GTK theme applies to QT apps too
This commit is contained in:
parent
3f8e7d78c6
commit
06b2792f1f
|
@ -1,18 +1,17 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment = {
|
environment.variables = {
|
||||||
systemPackages = with pkgs; [
|
GTK_DATA_PREFIX = [ "${config.system.path}" ];
|
||||||
libsForQt5.qtstyleplugins
|
GTK2_RC_FILES = "$HOME/.config/gtk-2.0/gtkrc";
|
||||||
# qt5.qtbase # make Qt 5 apps inherit GTK2 theme
|
QT_QPA_PLATFORMTHEME = "gtk2";
|
||||||
];
|
|
||||||
|
|
||||||
sessionVariables = {
|
|
||||||
QT_QPA_PLATFORMTHEME = "gtk2";
|
|
||||||
GTK_DATA_PREFIX = [ "${config.system.path}" ];
|
|
||||||
GTK2_RC_FILES = "$HOME/.config/gtk-2.0/gtkrc";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
qt5 = {
|
||||||
|
style = "gtk2";
|
||||||
|
platformTheme = "gtk2";
|
||||||
|
};
|
||||||
|
|
||||||
services.xserver.displayManager.sessionCommands = ''
|
services.xserver.displayManager.sessionCommands = ''
|
||||||
source "$XDG_CONFIG_HOME"/xsession/*.sh
|
source "$XDG_CONFIG_HOME"/xsession/*.sh
|
||||||
xrdb -merge "$XDG_CONFIG_HOME"/xtheme/*
|
xrdb -merge "$XDG_CONFIG_HOME"/xtheme/*
|
||||||
|
|
Loading…
Reference in a new issue