2024-05-22 14:29:45 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-07-20 01:23:48 +02:00
|
|
|
}:
|
|
|
|
let
|
2025-03-26 19:16:28 +01:00
|
|
|
inherit (lib.modules) mkIf;
|
2025-04-09 15:31:18 +02:00
|
|
|
inherit (lib.options) mkEnableOption mkOption;
|
2025-03-26 19:16:28 +01:00
|
|
|
inherit (lib.types) str package;
|
2025-04-09 15:31:18 +02:00
|
|
|
|
2025-03-31 11:25:40 +02:00
|
|
|
cfg = config.modules.theming.qt;
|
2025-07-20 01:23:48 +02:00
|
|
|
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;
|
2024-05-15 00:14:59 +02:00
|
|
|
};
|
|
|
|
};
|
2025-03-26 19:16:28 +01:00
|
|
|
|
2025-07-19 00:37:23 +02:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "qt5ct";
|
2025-03-26 19:16:28 +01:00
|
|
|
};
|
2025-07-19 00:37:23 +02:00
|
|
|
};
|
2024-04-10 17:39:26 +02:00
|
|
|
}
|