mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
2e44116afc
Those 2 variables are necessary to make e.g.: qt6ct work correctly. See issue: https://github.com/NixOS/nixpkgs/issues/239909.
24 lines
615 B
Nix
24 lines
615 B
Nix
{ 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'
|
|
'';
|
|
};
|
|
}
|