cb09a968e9
This option provides a more convenient way to overlay dummy packages. It also adds a function `config.lib.test.mkStubPackage` that can, e.g., be used for `package` options.
24 lines
503 B
Nix
24 lines
503 B
Nix
{ 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"'
|
|
'';
|
|
};
|
|
}
|