home-manager/tests/modules/misc/qt/qt-platform-theme-gnome.nix

24 lines
503 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
config = {
qt = {
enable = true;
platformTheme = "gnome";
style = {
name = "adwaita";
package = config.lib.test.mkStubPackage { };
};
};
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"'
'';
};
}