mirror of
https://github.com/nix-community/home-manager
synced 2024-11-05 10:49:44 +01:00
0e2dc4be30
This allows you to set a theme for Qt applications. For example, if you want to use `adwaita-qt` theme to have uniform look between Gtk and Qt applications, you can use it like this: ```nix { qt = { enable = true; platformTheme = "gnome"; style = { name = "adwaita"; package = pkgs.adwaita-qt; }; }; } ```
15 lines
253 B
Nix
15 lines
253 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
qt = {
|
|
enable = true;
|
|
platformTheme = "gtk";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileRegex home-path/etc/profile.d/hm-session-vars.sh \
|
|
'QT_QPA_PLATFORMTHEME="gtk2"'
|
|
'';
|
|
};
|
|
}
|