NixOS/stylix.nix
2025-05-20 18:26:47 -06:00

58 lines
1.6 KiB
Nix

{
pkgs,
lib,
config,
...
}:
let
cfg = config.my.stylix;
iconTheme = pkgs.papirus-icon-theme.override { color = "green"; };
in
{
options.my.stylix.enable = lib.mkEnableOption "enable";
config = {
stylix = {
enable = cfg.enable;
image = ./wallpapers/paul1.jpg;
targets.qt.platform = lib.mkForce "qtct";
polarity = "light";
base16Scheme = {
base00 = "ffffff"; # background
base01 = "f4f1ec"; # light surface
base02 = "e3dacb"; # selection bg
base03 = "c8b89f"; # comments/dim fg
base04 = "5c513f"; # status bar bg
base05 = "3b332a"; # main text
base06 = "2c241b"; # headings/bold
base07 = "1e1a14"; # dark accents
base08 = "d9903d"; # orange (highlight/accent)
base09 = "d0b553"; # yellow-gold (buttons/alerts)
base0A = "83a24d"; # soft green (secondary)
base0B = "729765"; # jungle green (success)
base0C = "90bca1"; # teal (info)
base0D = "659589"; # muted cyan (links)
base0E = "a28a65"; # brown-gold (keywords)
base0F = "a35a3a"; # deep clay red (deprecated/error)
};
};
home-manager.users.jawz = {
gtk = lib.mkIf (!cfg.enable) {
iconTheme = iconTheme;
};
stylix = {
enable = cfg.enable;
iconTheme = {
enable = cfg.enable;
package = iconTheme;
light = "Papirus-Light";
dark = "Papirus-Dark";
};
targets.librewolf = {
firefoxGnomeTheme.enable = cfg.enable;
profileNames = [ "jawz" ];
};
};
};
};
}