kvantum: add enable option

Missed previously, prefer gating enablement on real opt in.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2026-03-24 10:55:06 -05:00
parent 61463d50fc
commit a8931b2575
3 changed files with 6 additions and 1 deletions

View file

@ -10,6 +10,7 @@ let
concatMapStringsSep
generators
literalExpression
mkEnableOption
mkIf
mkOption
types
@ -30,6 +31,8 @@ in
{
options.qt.kvantum = {
enable = mkEnableOption "Kvantum configuration";
settings = mkOption {
type = types.submodule {
freeformType = types.attrsOf kvconfigSection;
@ -113,7 +116,7 @@ in
};
};
config = {
config = mkIf cfg.enable {
xdg.configFile = {
"Kvantum" = mkIf (cfg.themes != [ ]) {
recursive = true;

View file

@ -4,6 +4,7 @@
qt = {
enable = true;
kvantum = {
enable = true;
settings = {
General = {
theme = "KvAdapta";

View file

@ -4,6 +4,7 @@
qt = {
enable = true;
kvantum = {
enable = true;
settings = {
general = {
theme = "KvAdapta";