nixos-configs/modules/desktop/themes/qt.nix

30 lines
593 B
Nix
Raw Normal View History

2023-03-27 09:28:51 +02:00
{ inputs, config, lib, pkgs, ... }:
with lib;
with lib.my;
2024-06-23 02:36:51 +02:00
let cfg = config.modules.desktop.themes.qt;
2024-03-01 17:11:19 +01:00
2023-03-27 09:28:51 +02:00
in {
options.modules.desktop.themes.qt = { enable = mkBoolOpt false; };
config = mkIf cfg.enable {
2024-03-01 17:11:19 +01:00
environment.systemPackages = with pkgs; [
libsForQt5.qt5.qtquickcontrols2
libsForQt5.qt5.qtgraphicaleffects
];
2023-03-27 09:28:51 +02:00
2024-03-01 17:11:19 +01:00
home-manager.users.${config.user.name} = {
2023-03-27 09:28:51 +02:00
2024-03-01 17:11:19 +01:00
qt = {
enable = true;
2024-06-23 05:34:29 +02:00
platformTheme.name = "gtk";
2024-03-01 17:11:19 +01:00
style = {
name = "adwaita-dark";
package = pkgs.unstable.adwaita-qt;
2023-03-27 09:28:51 +02:00
};
};
};
};
}