mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-09 10:16:55 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
31 lines
797 B
Nix
31 lines
797 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
qt = {
|
|
enable = true;
|
|
platformTheme.name = "gtk";
|
|
};
|
|
|
|
i18n.inputMethod.enabled = "fcitx5";
|
|
|
|
nixpkgs.overlays = [
|
|
(final: prev: {
|
|
libsForQt5 = prev.libsForQt5.overrideScope (qt5final: qt5prev: {
|
|
qtstyleplugins = config.lib.test.mkStubPackage { outPath = null; };
|
|
});
|
|
|
|
qt6Packages = prev.qt6Packages.overrideScope (qt6final: qt6prev: {
|
|
qt6gtk2 = config.lib.test.mkStubPackage { outPath = null; };
|
|
});
|
|
})
|
|
];
|
|
|
|
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'
|
|
'';
|
|
}
|