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

View File

@@ -11,6 +11,7 @@ in
{
imports = [
inputs.sops-nix.homeManagerModules.sops
../../modules/stylix.nix
../../modules/lib.nix
../../modules/ai-tools.nix
../../modules/cloud
@@ -20,7 +21,7 @@ in
../../modules/docker
../../modules/git
../../modules/k8s
../../modules/k9s.nix
../../modules/k8s/k9s.nix
../../modules/keepassxc.nix
../../modules/kitty.nix
../../modules/nvim.nix

View File

@@ -1,24 +1,14 @@
{ lib, ... }:
{
programs.fuzzel = {
enable = true;
settings = {
main = {
font = "Iosevka Term SS08";
font = lib.mkForce "Iosevka Term SS08";
horizontal-pad = 0;
vertical-pad = 0;
};
colors = {
background = "ccccccff";
text = "111111ff";
prompt = "ccccccff";
placeholder = "aaaaaaff";
input = "111111ff";
selection = "eeeeeeff";
selection-text = "111111ff";
selection-match = "333333ff";
counter = "111111ff";
border = "111111ff";
};
border = {
width = 2;
radius = 0;

View File

@@ -1,5 +1,11 @@
{ lib, ... }:
{
services.mako = {
enable = true;
settings = {
border-color = lib.mkForce "#bbbbbb";
font = lib.mkForce "Iosevka Term SS08 10";
};
};
}

40
home/modules/stylix.nix Normal file
View File

@@ -0,0 +1,40 @@
{
inputs,
pkgs,
...
}:
{
imports = [ inputs.stylix.homeModules.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";
};
};
targets = {
firefox.profileNames = [ "default" ];
gnome.enable = false;
gtk.enable = false;
kitty.enable = false;
nixvim.enable = false;
waybar.enable = false;
};
};
}