From 158726607088b6904f4f4bb471f51399641c167f Mon Sep 17 00:00:00 2001 From: Artur Manuel Date: Tue, 21 Jan 2025 16:55:49 +0000 Subject: [PATCH] fix(dconf): add default option --- hosts/shared/dconf.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/shared/dconf.nix b/hosts/shared/dconf.nix index 10db9ae..6e45fea 100644 --- a/hosts/shared/dconf.nix +++ b/hosts/shared/dconf.nix @@ -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;