mirror of
https://github.com/EdenQwQ/nixos.git
synced 2025-12-26 18:34: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
|
|
@ -10,6 +10,8 @@
|
|||
nerd-fonts.hurmit
|
||||
nerd-fonts.monofur
|
||||
lxgw-wenkai
|
||||
maple-mono.NF-CN
|
||||
maple-mono.variable
|
||||
];
|
||||
fonts.fontDir.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue