From 8d10b38d0deda019b3aa17f1f140f5018b13e1a8 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 16 Feb 2026 20:07:52 +0100 Subject: [PATCH] feat: set up 'stylix' --- home/modules/mako/default.nix | 5 ----- home/modules/stylix.nix | 4 ++++ modules/common/default.nix | 1 + modules/stylix.nix | 35 +++++++++++++++++++++++++++++++++++ stylix/zenwritten-dark.yaml | 18 ++++++++++++++++++ 5 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 modules/stylix.nix create mode 100644 stylix/zenwritten-dark.yaml 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..0d1f992 100644 --- a/home/modules/stylix.nix +++ b/home/modules/stylix.nix @@ -32,6 +32,10 @@ profileNames = [ "default" ]; colorTheme.enable = true; }; + librewolf = { + profileNames = [ "default" ]; + colorTheme.enable = true; + }; gnome.enable = false; gtk.enable = false; kitty = { diff --git a/modules/common/default.nix b/modules/common/default.nix index 3f62336..ce8ac47 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -11,6 +11,7 @@ in { imports = [ inputs.home-manager.nixosModules.default + ../stylix.nix ]; system.stateVersion = "25.05"; diff --git a/modules/stylix.nix b/modules/stylix.nix new file mode 100644 index 0000000..ced4092 --- /dev/null +++ b/modules/stylix.nix @@ -0,0 +1,35 @@ +{ + config, + inputs, + pkgs, + ... +}: + +{ + imports = [ inputs.stylix.nixosModules.stylix ]; + + stylix = { + enable = true; + polarity = "dark"; + base16Scheme = ../stylix/zenwritten-dark.yaml; + image = config.lib.stylix.pixel "base00"; + fonts = { + monospace = { + package = pkgs.iosevka-bin.override { variant = "SS08"; }; + name = "Iosevka Term SS08"; + }; + }; + autoEnable = true; + }; + + home-manager.sharedModules = [ + { + stylix.targets = { + firefox.profileNames = [ "default" ]; + librewolf.profileNames = [ "default" ]; + kitty.enable = false; + waybar.enable = false; + }; + } + ]; +} diff --git a/stylix/zenwritten-dark.yaml b/stylix/zenwritten-dark.yaml new file mode 100644 index 0000000..8bfe5c9 --- /dev/null +++ b/stylix/zenwritten-dark.yaml @@ -0,0 +1,18 @@ +scheme: "zenwritten-dark" +author: "derived from zenbones.nvim zenwritten_dark" +base00: "191919" # background +base01: "303030" # inactive tab bg +base02: "404040" # selection bg +base03: "8E8E8E" # bright white (comments) +base04: "3D3839" # bright black +base05: "BBBBBB" # foreground +base06: "C9C9C9" # cursor +base07: "EEEEEE" # light foreground +base08: "DE6E7C" # red +base09: "B77E64" # yellow (orange) +base0A: "D68C67" # bright yellow +base0B: "819B69" # green +base0C: "66A5AD" # cyan +base0D: "6099C0" # blue +base0E: "B279A7" # magenta +base0F: "65435E" # active tab bg (brown)