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

@ -10,6 +10,8 @@
nerd-fonts.hurmit
nerd-fonts.monofur
lxgw-wenkai
maple-mono.NF-CN
maple-mono.variable
];
fonts.fontDir.enable = true;
}

View file

@ -9,20 +9,41 @@ let
cfg = self.homeConfigurations."${user}@${host}".config;
in
{
stylix = {
enable = true;
base16Scheme = lib.mkDefault cfg.stylix.base16Scheme;
autoEnable = false;
targets = {
console.enable = true;
gnome.enable = true;
grub.enable = true;
plymouth.enable = true;
};
};
stylix =
{
enable = true;
autoEnable = false;
targets = {
console.enable = true;
gnome.enable = true;
grub.enable = true;
plymouth.enable = true;
};
}
// (
if builtins.hasAttr "base16Scheme" cfg.stylix then
{ base16Scheme = lib.mkDefault cfg.stylix.base16Scheme; }
else
{ }
)
// (
if builtins.hasAttr "image" cfg.stylix then { image = lib.mkDefault cfg.stylix.image; } else { }
);
specialisation = builtins.mapAttrs (name: value: {
configuration = {
stylix.base16Scheme = lib.mkForce cfg.specialisation.${name}.configuration.stylix.base16Scheme;
stylix =
(
if builtins.hasAttr "base16Scheme" value.configuration.stylix then
{ base16Scheme = lib.mkForce cfg.specialisation.${name}.configuration.stylix.base16Scheme; }
else
{ }
)
// (
if builtins.hasAttr "image" value.configuration.stylix then
{ image = lib.mkForce cfg.specialisation.${name}.configuration.stylix.image; }
else
{ }
);
environment.etc."specialisation".text = name;
};
}) cfg.specialisation;