1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 18:57:22 +00:00
home-manager/tests/modules/misc/qt/qt-platform-theme-gtk.nix

32 lines
797 B
Nix
Raw Normal View History

{ config, ... }:
{
2024-12-04 10:24:09 +01:00
qt = {
enable = true;
platformTheme.name = "gtk";
};
2024-12-04 10:24:09 +01:00
i18n.inputMethod.enabled = "fcitx5";
nixpkgs.overlays = [
(final: prev: {
libsForQt5 = prev.libsForQt5.overrideScope (qt5final: qt5prev: {
qtstyleplugins = config.lib.test.mkStubPackage { outPath = null; };
2024-12-04 10:24:09 +01:00
});
qt6Packages = prev.qt6Packages.overrideScope (qt6final: qt6prev: {
qt6gtk2 = config.lib.test.mkStubPackage { outPath = null; };
2024-12-04 10:24:09 +01:00
});
})
];
nmt.script = ''
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
'QT_QPA_PLATFORMTHEME="gtk2"'
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'
'';
}