nixos/settings/stylix.nix
ediblerope cc4216117a stylix: phase 1 — add input and target waybar/fuzzel/mako/hyprlock/hyprland
Adds nix-community/stylix on its release-25.11 branch (master references
options that don't exist in 25.11's nixpkgs). autoEnable=false so
matugen keeps owning every app it currently themes; we only opt in to
the five targets matugen doesn't cover.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 13:32:18 +01:00

40 lines
1 KiB
Nix

{ config, pkgs, lib, inputs, ... }:
{
imports = [ inputs.stylix.nixosModules.stylix ];
config = lib.mkIf (lib.elem config.networking.hostName [ "FredOS-Gaming" "FredOS-Macbook" ]) {
stylix = {
enable = true;
image = "${inputs.self}/walls/wallpaper.png";
polarity = "dark";
# Phase 1: opt in to specific targets only. Apps currently handled by
# matugen (gtk, ghostty, zen, btop, vscodium, vesktop) keep their
# matugen-derived colors — autoEnable would clobber them.
autoEnable = false;
cursor = {
package = pkgs.adwaita-icon-theme;
name = "Adwaita";
size = 24;
};
fonts.monospace = {
package = pkgs.nerd-fonts.fira-mono;
name = "FiraMono Nerd Font";
};
};
home-manager.users.fred = {
imports = [ inputs.stylix.homeModules.stylix ];
stylix.targets = {
waybar.enable = true;
fuzzel.enable = true;
mako.enable = true;
hyprlock.enable = true;
hyprland.enable = true;
};
};
};
}