1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-06 03:09:45 +01:00
home-manager/tests/modules/misc/qt/qt-platform-theme-gnome.nix

25 lines
615 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
config = {
qt = {
enable = true;
platformTheme = "gnome";
style.name = "adwaita";
};
test.stubs.qgnomeplatform = { };
nmt.script = ''
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_QPA_PLATFORMTHEME="gnome"'
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_STYLE_OVERRIDE="adwaita"'
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_PLUGIN_PATH'
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QML2_IMPORT_PATH'
'';
};
}