fix(dconf): add default option
This commit is contained in:
parent
7938019d55
commit
1587266070
1 changed files with 5 additions and 2 deletions
|
@ -9,10 +9,13 @@ in {
|
||||||
options.alqueva.system.dconf = {
|
options.alqueva.system.dconf = {
|
||||||
enable = lib.mkEnableOption "configuration with DConf";
|
enable = lib.mkEnableOption "configuration with DConf";
|
||||||
luminosity = lib.mkOption {
|
luminosity = lib.mkOption {
|
||||||
type = types.enum ["dark" "light"];
|
type = types.enum ["dark" "light" "default"];
|
||||||
default = "dark";
|
default = "dark";
|
||||||
description = "The luminosity you want to use for GTK.";
|
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 {
|
theme = lib.mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue