diff options
Diffstat (limited to 'home/modules/misc')
-rw-r--r-- | home/modules/misc/neotheme/default.nix | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/home/modules/misc/neotheme/default.nix b/home/modules/misc/neotheme/default.nix index 74f2c74..df69251 100644 --- a/home/modules/misc/neotheme/default.nix +++ b/home/modules/misc/neotheme/default.nix @@ -2,7 +2,8 @@ with lib; let cfg = config.neotheme; -in { +in +{ options.neotheme = { wallpaper = mkOption { type = types.str; @@ -26,34 +27,36 @@ in { example = "My Amazing Theme"; }; - colors = let - mkColorOption = name: { - inherit name; - value = mkOption { - type = types.strMatching "[a-fA-F0-9]{6}"; - description = "color ${name}."; + colors = + let + mkColorOption = name: { + inherit name; + value = mkOption { + type = types.strMatching "[a-fA-F0-9]{6}"; + description = "color ${name}."; + }; }; - }; - in listToAttrs (map mkColorOption [ - "background" - "foreground" - "color0" - "color1" - "color2" - "color3" - "color4" - "color5" - "color6" - "color7" - "bright0" - "bright1" - "bright2" - "bright3" - "bright4" - "bright5" - "bright6" - "bright7" - ]); + in + listToAttrs (map mkColorOption [ + "background" + "foreground" + "color0" + "color1" + "color2" + "color3" + "color4" + "color5" + "color6" + "color7" + "bright0" + "bright1" + "bright2" + "bright3" + "bright4" + "bright5" + "bright6" + "bright7" + ]); }; }; } |