feat: switch to stylix for theming

This commit is contained in:
Youwen Wu 2024-10-30 21:38:05 -07:00
parent 404e6c6366
commit e11db09e24
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
11 changed files with 396 additions and 82 deletions

View file

@ -2,17 +2,17 @@
{
fonts = {
enableDefaultPackages = true;
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
};
};
# fontconfig = {
# defaultFonts = {
# serif = [ "Noto Serif" ];
# sansSerif = [ "Noto Sans" ];
# };
# };
packages = with pkgs; [
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
(nerdfonts.override { fonts = [ "CascadiaCode" ]; })
# noto-fonts
# noto-fonts-cjk-sans
# noto-fonts-emoji
# (nerdfonts.override { fonts = [ "CascadiaCode" ]; })
(google-fonts.override { fonts = [ "Lora" ]; })
];
};

View file

@ -0,0 +1,32 @@
{ inputs, pkgs, ... }:
{
imports = [
inputs.stylix.nixosModules.stylix
];
stylix = {
enable = true;
image = "${inputs.wallpapers}/aesthetic/afterglow_city_skyline_at_night.png";
base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
polarity = "dark";
fonts = {
serif = {
name = "Noto Serif";
package = pkgs.noto-fonts;
};
sansSerif = {
name = "Noto Sans";
package = pkgs.noto-fonts;
};
emoji = {
name = "Noto Color Emoji";
package = pkgs.noto-fonts-emoji;
};
monospace = {
name = "CaskaydiaCove Nerd Font";
package = (pkgs.nerdfonts.override { fonts = [ "CascadiaCode" ]; });
};
};
};
}