feat: set up 'stylix'

This commit is contained in:
2026-02-16 20:07:52 +01:00
parent a846849a80
commit 6f49f89c18
9 changed files with 414 additions and 15 deletions

43
modules/stylix.nix Normal file
View File

@@ -0,0 +1,43 @@
{
inputs,
pkgs,
...
}:
{
imports = [ inputs.stylix.nixosModules.stylix ];
stylix = {
enable = true;
polarity = "dark";
base16Scheme = ../stylix/zenwritten-dark.yaml;
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
magick -size 1x1 xc:#191919 $out
'';
fonts = {
monospace = {
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
};
serif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
sansSerif = {
package = pkgs.dejavu_fonts;
name = "DejaVu Sans";
};
};
autoEnable = true;
};
home-manager.sharedModules = [
{
stylix.targets = {
firefox.profileNames = [ "default" ];
kitty.enable = false;
# waybar.enable = false;
};
}
];
}