update colorscheme module; use maple mono font

This commit is contained in:
EdenQwQ 2025-03-27 14:29:51 +08:00
parent 0a0b350b3a
commit 0de8efbba0
11 changed files with 191 additions and 51 deletions

View file

@ -16,6 +16,29 @@ let
};
};
fromImageOptions = submodule {
options = {
enable = mkEnableOption "Enable generating colorscheme from image";
image = mkOption {
type = either str path;
description = "Path to the image";
};
method = mkOption {
type = enum [
"matugen"
"hellwal"
"stylix"
];
description = "The method to use to generate the colorscheme";
default = "matugen";
};
passthru = mkOption {
type = attrs;
description = "Passthru options to the method";
};
};
};
colorScheme = submodule {
options = {
name = mkOption {
@ -35,10 +58,12 @@ let
description = "Polarity of the color scheme (dark or light)";
default = "dark";
};
matugen = mkOption {
type = nullOr matugenOptions;
description = "Matugen options";
default = null;
fromImage = mkOption {
type = fromImageOptions;
description = "Options for generating colorscheme from image";
default = {
enable = false;
};
};
};
};