nichts/modules/style/qt.mod.nix

46 lines
882 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
}:
let
2025-03-26 19:16:28 +01:00
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption mkOption;
2025-03-26 19:16:28 +01:00
inherit (lib.types) str package;
2025-03-31 11:25:40 +02:00
cfg = config.modules.theming.qt;
in
{
2025-03-31 11:25:40 +02:00
options.modules.theming.qt = {
2025-03-26 19:16:28 +01:00
enable = mkEnableOption "qt theming";
name = mkOption {
description = "qt theme name";
default = "Catppuccin-Mocha-Dark";
type = str;
};
variant = mkOption {
description = "qt theme variant";
default = "mocha";
type = str;
};
accentColor = mkOption {
description = "accent colour for qt theme";
default = "green";
type = str;
};
package = mkOption {
description = "qt theme package";
default = pkgs.catppuccin-kde;
type = package;
};
};
2025-03-26 19:16:28 +01:00
config = mkIf cfg.enable {
qt = {
enable = true;
platformTheme = "qt5ct";
2025-03-26 19:16:28 +01:00
};
};
2024-04-10 17:39:26 +02:00
}