From c75724de688f294a98504e84354fce3879b21c10 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Tue, 17 Feb 2026 20:30:32 +0100 Subject: [PATCH] feat: set up 'stylix' --- dots/.config/tmux/tmux.regular.conf | 1 - home/modules/mako/default.nix | 5 ----- home/modules/stylix.nix | 26 ++++++++++++++------------ home/modules/tmux.nix | 9 ++------- modules/stylix/default.nix | 24 +++++++++++++++--------- modules/stylix/theme.nix | 16 ++++++++++++++++ 6 files changed, 47 insertions(+), 34 deletions(-) delete mode 100644 dots/.config/tmux/tmux.regular.conf create mode 100644 modules/stylix/theme.nix diff --git a/dots/.config/tmux/tmux.regular.conf b/dots/.config/tmux/tmux.regular.conf deleted file mode 100644 index aab40e6..0000000 --- a/dots/.config/tmux/tmux.regular.conf +++ /dev/null @@ -1 +0,0 @@ -set -g status-style bg=default diff --git a/home/modules/mako/default.nix b/home/modules/mako/default.nix index b443621..880838e 100644 --- a/home/modules/mako/default.nix +++ b/home/modules/mako/default.nix @@ -1,10 +1,5 @@ -{ lib, ... }: - { services.mako = { enable = true; - settings = { - border-color = lib.mkForce "#bbbbbb"; - }; }; } diff --git a/home/modules/stylix.nix b/home/modules/stylix.nix index ac0235d..695d907 100644 --- a/home/modules/stylix.nix +++ b/home/modules/stylix.nix @@ -5,24 +5,22 @@ ... }: +let + theme = import ../../modules/stylix/theme.nix { inherit pkgs; }; +in { imports = [ inputs.stylix.homeModules.stylix ]; stylix = { enable = true; - polarity = "dark"; - base16Scheme = ../../modules/stylix/zenwritten-dark.yaml; - override = { - base04 = "8E8E8E"; # improved contrast - }; - image = pkgs.runCommand "solid-bg.png" { nativeBuildInputs = [ pkgs.imagemagick ]; } '' - magick -size 1x1 xc:#191919 $out - ''; + inherit (theme) + polarity + base16Scheme + override + image + ; fonts = { - monospace = { - package = pkgs.iosevka-bin.override { variant = "SS08"; }; - name = "Iosevka Term SS08"; - }; + monospace = theme.monospaceFont; serif = config.stylix.fonts.monospace; sansSerif = config.stylix.fonts.monospace; emoji = config.stylix.fonts.monospace; @@ -32,6 +30,10 @@ profileNames = [ "default" ]; colorTheme.enable = true; }; + librewolf = { + profileNames = [ "default" ]; + colorTheme.enable = true; + }; gnome.enable = false; gtk.enable = false; kitty = { diff --git a/home/modules/tmux.nix b/home/modules/tmux.nix index 03d51e3..47a87b3 100644 --- a/home/modules/tmux.nix +++ b/home/modules/tmux.nix @@ -1,8 +1,5 @@ -{ - pkgs, - dotsPath, - ... -}: +{ pkgs, dotsPath, ... }: + { config = { home.packages = with pkgs; [ @@ -16,9 +13,7 @@ }; 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.regular.conf".source = dotsPath + "/.config/tmux/hooks/tmux.regular.conf"; }; }; } diff --git a/modules/stylix/default.nix b/modules/stylix/default.nix index 03e6fcb..e679279 100644 --- a/modules/stylix/default.nix +++ b/modules/stylix/default.nix @@ -5,21 +5,22 @@ ... }: +let + theme = import ./theme.nix { inherit pkgs; }; +in { 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 - ''; + inherit (theme) + polarity + base16Scheme + override + image + ; fonts = { - monospace = { - package = pkgs.iosevka-bin.override { variant = "SS08"; }; - name = "Iosevka Term SS08"; - }; + monospace = theme.monospaceFont; serif = config.stylix.fonts.monospace; sansSerif = config.stylix.fonts.monospace; emoji = config.stylix.fonts.monospace; @@ -31,6 +32,11 @@ { stylix.targets = { firefox.profileNames = [ "default" ]; + librewolf.profileNames = [ "default" ]; + kitty.variant256Colors = true; + gnome.enable = false; + gtk.enable = false; + nixvim.enable = false; }; } ]; diff --git a/modules/stylix/theme.nix b/modules/stylix/theme.nix new file mode 100644 index 0000000..41f51f8 --- /dev/null +++ b/modules/stylix/theme.nix @@ -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"; + }; +}