add stylix as theme config
This commit is contained in:
parent
b2dfe23325
commit
be72064f13
12 changed files with 417 additions and 20 deletions
|
|
@ -11,6 +11,7 @@
|
|||
])
|
||||
++ [
|
||||
./users
|
||||
./stylix.nix
|
||||
|
||||
# Include the hardware related config
|
||||
./hardware-configuration.nix
|
||||
|
|
|
|||
27
nixos/configurations/Tytonidae/stylix.nix
Normal file
27
nixos/configurations/Tytonidae/stylix.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ in
|
|||
noto-fonts-emoji
|
||||
lxgw-wenkai
|
||||
];
|
||||
fontconfig.defaultFonts = pkgs.lib.mkForce {
|
||||
fontconfig.defaultFonts = {
|
||||
serif = [
|
||||
"LXGW WenKai"
|
||||
"Noto Serif CJK SC"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue