qt: use new upstream option to merge kvantum config (#2293)
Follow up to introduction of Kvantum options in Home Manager [1] ("qt: add kvantum options").
[1]: 61463d50fc
Link: https://github.com/nix-community/stylix/pull/2293
Reviewed-by: 0xda157 <da157@voidq.com>
This commit is contained in:
parent
0990697fe9
commit
0bd266569c
1 changed files with 6 additions and 10 deletions
|
|
@ -95,8 +95,6 @@
|
|||
"stylix: qt: Changing `config.qt.style` is unsupported and may result in breakage! Use with caution!"
|
||||
);
|
||||
|
||||
home.packages = lib.optional (config.qt.style.name == "kvantum") kvantumPackage;
|
||||
|
||||
qt =
|
||||
let
|
||||
qtctSettings = {
|
||||
|
|
@ -120,15 +118,13 @@
|
|||
|
||||
qt5ctSettings = lib.mkIf (config.qt.platformTheme.name == "qtct") qtctSettings;
|
||||
qt6ctSettings = lib.mkIf (config.qt.platformTheme.name == "qtct") qtctSettings;
|
||||
};
|
||||
|
||||
xdg.configFile = lib.mkIf (config.qt.style.name == "kvantum") {
|
||||
"Kvantum/kvantum.kvconfig".source =
|
||||
(pkgs.formats.ini { }).generate "kvantum.kvconfig"
|
||||
{ General.theme = "Base16Kvantum"; };
|
||||
"Kvantum/Base16Kvantum".source =
|
||||
"${kvantumPackage}/share/Kvantum/Base16Kvantum";
|
||||
};
|
||||
kvantum = lib.mkIf (config.qt.style.name == "kvantum") {
|
||||
enable = true;
|
||||
settings.General.theme = "Base16Kvantum";
|
||||
themes = [ kvantumPackage ];
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue