feat: set up 'stylix'

This commit is contained in:
2026-02-17 20:30:32 +01:00
parent 04f33a92ea
commit c75724de68
6 changed files with 47 additions and 34 deletions

View File

@@ -1 +0,0 @@
set -g status-style bg=default

View File

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

View File

@@ -5,24 +5,22 @@
... ...
}: }:
let
theme = import ../../modules/stylix/theme.nix { inherit pkgs; };
in
{ {
imports = [ inputs.stylix.homeModules.stylix ]; imports = [ inputs.stylix.homeModules.stylix ];
stylix = { stylix = {
enable = true; enable = true;
polarity = "dark"; inherit (theme)
base16Scheme = ../../modules/stylix/zenwritten-dark.yaml; polarity
override = { base16Scheme
base04 = "8E8E8E"; # improved contrast override
}; image
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } '' ;
magick -size 1x1 xc:#191919 $out
'';
fonts = { fonts = {
monospace = { monospace = theme.monospaceFont;
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
};
serif = config.stylix.fonts.monospace; serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace; sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace; emoji = config.stylix.fonts.monospace;
@@ -32,6 +30,10 @@
profileNames = [ "default" ]; profileNames = [ "default" ];
colorTheme.enable = true; colorTheme.enable = true;
}; };
librewolf = {
profileNames = [ "default" ];
colorTheme.enable = true;
};
gnome.enable = false; gnome.enable = false;
gtk.enable = false; gtk.enable = false;
kitty = { kitty = {

View File

@@ -1,8 +1,5 @@
{ { pkgs, dotsPath, ... }:
pkgs,
dotsPath,
...
}:
{ {
config = { config = {
home.packages = with pkgs; [ home.packages = with pkgs; [
@@ -16,9 +13,7 @@
}; };
home.file = { home.file = {
".config/tmux/tmux.regular.conf".source = dotsPath + "/.config/tmux/tmux.regular.conf";
".config/tmux/hooks/tmux.ssh.conf".source = dotsPath + "/.config/tmux/hooks/tmux.ssh.conf"; ".config/tmux/hooks/tmux.ssh.conf".source = dotsPath + "/.config/tmux/hooks/tmux.ssh.conf";
".config/tmux/hooks/tmux.regular.conf".source = dotsPath + "/.config/tmux/hooks/tmux.regular.conf";
}; };
}; };
} }

View File

@@ -5,21 +5,22 @@
... ...
}: }:
let
theme = import ./theme.nix { inherit pkgs; };
in
{ {
imports = [ inputs.stylix.nixosModules.stylix ]; imports = [ inputs.stylix.nixosModules.stylix ];
stylix = { stylix = {
enable = true; enable = true;
polarity = "dark"; inherit (theme)
base16Scheme = ../stylix/zenwritten-dark.yaml; polarity
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } '' base16Scheme
magick -size 1x1 xc:#191919 $out override
''; image
;
fonts = { fonts = {
monospace = { monospace = theme.monospaceFont;
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
};
serif = config.stylix.fonts.monospace; serif = config.stylix.fonts.monospace;
sansSerif = config.stylix.fonts.monospace; sansSerif = config.stylix.fonts.monospace;
emoji = config.stylix.fonts.monospace; emoji = config.stylix.fonts.monospace;
@@ -31,6 +32,11 @@
{ {
stylix.targets = { stylix.targets = {
firefox.profileNames = [ "default" ]; firefox.profileNames = [ "default" ];
librewolf.profileNames = [ "default" ];
kitty.variant256Colors = true;
gnome.enable = false;
gtk.enable = false;
nixvim.enable = false;
}; };
} }
]; ];

16
modules/stylix/theme.nix Normal file
View File

@@ -0,0 +1,16 @@
{ pkgs }:
{
polarity = "dark";
base16Scheme = ./zenwritten-dark.yaml;
override = {
base04 = "8E8E8E";
};
image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } ''
magick -size 1x1 xc:#191919 $out
'';
monospaceFont = {
package = pkgs.iosevka-bin.override { variant = "SS08"; };
name = "Iosevka Term SS08";
};
}