about summary refs log tree commit diff
path: root/home/modules/misc/neotheme
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-01-08 21:48:22 +0900
committersefidel <contact@sefidel.net>2022-01-08 21:48:22 +0900
commit8e82f138c8c9529f3c8a94017aaab27cc5ae6391 (patch)
treec1fba71b643a091ca1357d73ecda2838e93fd9d8 /home/modules/misc/neotheme
parent2daa3dcd4321c00e69549cafdf12685d36dc7259 (diff)
downloadnixrc-8e82f138c8c9529f3c8a94017aaab27cc5ae6391.tar.gz
nixrc-8e82f138c8c9529f3c8a94017aaab27cc5ae6391.zip
home/misc: change neotheme module structure
Diffstat (limited to 'home/modules/misc/neotheme')
-rw-r--r--home/modules/misc/neotheme/default.nix90
1 files changed, 44 insertions, 46 deletions
diff --git a/home/modules/misc/neotheme/default.nix b/home/modules/misc/neotheme/default.nix
index df69251..5a5e375 100644
--- a/home/modules/misc/neotheme/default.nix
+++ b/home/modules/misc/neotheme/default.nix
@@ -5,58 +5,56 @@ let cfg = config.neotheme;
 in
 {
   options.neotheme = {
-    wallpaper = mkOption {
+    name = mkOption {
       type = types.str;
       default = "";
-      description = "path for wallpaper image file";
-      example = "/weird/dir/wallpaper.png";
+      description = "palette name";
+      example = "My Amazing Theme";
     };
 
-    palette = {
-      identifier = mkOption {
-        type = types.str;
-        default = "";
-        description = "palette identifier";
-        example = "mytheme";
-      };
-
-      name = mkOption {
-        type = types.str;
-        default = "";
-        description = "palette name";
-        example = "My Amazing Theme";
-      };
+    identifier = mkOption {
+      type = types.str;
+      default = "";
+      description = "palette identifier";
+      example = "mytheme";
+    };
 
-      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"
+      ]);
+
+    wallpaper = mkOption {
+      type = types.str;
+      default = "";
+      description = "path for wallpaper image file";
+      example = "/weird/dir/wallpaper.png";
     };
   };
 }