29 lines
593 B
Nix
29 lines
593 B
Nix
{ inputs, config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.my;
|
|
let cfg = config.modules.desktop.themes.qt;
|
|
|
|
in {
|
|
options.modules.desktop.themes.qt = { enable = mkBoolOpt false; };
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
libsForQt5.qt5.qtquickcontrols2
|
|
libsForQt5.qt5.qtgraphicaleffects
|
|
];
|
|
|
|
home-manager.users.${config.user.name} = {
|
|
|
|
qt = {
|
|
enable = true;
|
|
platformTheme.name = "gtk";
|
|
style = {
|
|
name = "adwaita-dark";
|
|
package = pkgs.unstable.adwaita-qt;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|