diff options
author | sefidel <contact@sefidel.net> | 2022-01-02 00:05:25 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2022-01-02 00:05:25 +0900 |
commit | bf632250b267e175fb2b87303bb6e35c671d0a92 (patch) | |
tree | 0488ecfacc415f7a83f399ee5ba024909b363580 /home/modules/misc | |
parent | 475444a7ab3ee287ac86ce5f7bb7c1c25525c232 (diff) | |
download | nixrc-bf632250b267e175fb2b87303bb6e35c671d0a92.tar.gz nixrc-bf632250b267e175fb2b87303bb6e35c671d0a92.zip |
repo: reformat using nixpkgs-fmt
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" + ]); }; }; } |