add stylix as theme config

This commit is contained in:
ulic-youthlic 2025-01-16 19:38:54 +08:00
parent b2dfe23325
commit be72064f13
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
12 changed files with 417 additions and 20 deletions

View file

@ -11,6 +11,7 @@
])
++ [
./users
./stylix.nix
# Include the hardware related config
./hardware-configuration.nix

View file

@ -0,0 +1,27 @@
{ pkgs, rootPath, ... }:
{
stylix = {
enable = true;
image = rootPath + "/assets/wallpaper/01.png";
polarity = "dark";
base16Scheme = "${pkgs.base16-schemes}/share/themes/ayu-dark.yaml";
fonts = {
serif = {
package = pkgs.lxgw-wenkai;
name = "LXGW WenKai";
};
sansSerif = {
package = pkgs.noto-fonts-cjk-serif;
name = "Noto Serif CJK SC";
};
monospace = {
package = pkgs.nerd-fonts.fira-code;
name = "FiraCode Nerd Font";
};
emoji = {
package = pkgs.noto-fonts-emoji;
name = "Noto Color Emoji";
};
};
};
}

View file

@ -1,7 +1,6 @@
{
inputs,
outputs,
pkgs,
...
}:
{
@ -12,6 +11,7 @@
home-manager.nixosModules.home-manager
dae.nixosModules.dae
sops-nix.nixosModules.sops
stylix.nixosModules.stylix
])
++ [
./nix.nix

View file

@ -42,7 +42,7 @@ in
noto-fonts-emoji
lxgw-wenkai
];
fontconfig.defaultFonts = pkgs.lib.mkForce {
fontconfig.defaultFonts = {
serif = [
"LXGW WenKai"
"Noto Serif CJK SC"