fix(dconf): add default option

This commit is contained in:
Artur Manuel 2025-01-21 16:55:49 +00:00
commit 1587266070

View file

@ -9,10 +9,13 @@ in {
options.alqueva.system.dconf = {
enable = lib.mkEnableOption "configuration with DConf";
luminosity = lib.mkOption {
type = types.enum ["dark" "light"];
type = types.enum ["dark" "light" "default"];
default = "dark";
description = "The luminosity you want to use for GTK.";
apply = lum: "prefer-${lum}";
apply = lum:
if lum == "default"
then lum
else "prefer-${lum}";
};
theme = lib.mkOption {
type = types.str;