nixos/settings/stylix.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

{ 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";
};
# Used by stylix for fuzzel, waybar, mako etc. Stylix defaults this
# to DejaVu Sans which looks dated; Inter is a clean modern sans.
sansSerif = {
package = pkgs.inter;
name = "Inter";
};
serif = {
package = pkgs.inter;
name = "Inter";
};
};
};
# Stylix's NixOS module auto-wires homeModules.stylix into every
# home-manager user, so we just opt into targets here.
home-manager.users.fred.stylix.targets = {
waybar.enable = true;
fuzzel.enable = true;
mako.enable = true;
hyprlock.enable = true;
hyprland.enable = true;
};
};
}