mirror of
https://github.com/EdenQwQ/nixos.git
synced 2026-05-11 17:35:56 +08:00
update colorscheme module; use maple mono font
This commit is contained in:
parent
0a0b350b3a
commit
0de8efbba0
11 changed files with 191 additions and 51 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue