stylix

Apply unified color palettes and wallpaper-derived themes across NixOS configurations.

21|Updated Jan 5, 2024
One-click install
npx skills add https://github.com/olafkfreund/nixos_config --skill stylix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stylix
Source: https://github.com/olafkfreund/nixos_config/tree/main/.gemini/skills/stylix
Command: npx skills add https://github.com/olafkfreund/nixos_config --skill stylix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stylix solves the problem of maintaining a consistent, visually coherent theme across a NixOS setup by automating system-wide colors, fonts, and wallpapers derived from a palette, without manual per-application tweaks.

Core Features & Use Cases

  • Unified theming: applies color schemes, fonts, and wallpapers across NixOS, Home Manager, and multi-platform environments.
  • Wallpaper-driven palettes: auto-generates color schemes from wallpapers and supports Base16 integrations.
  • Per-target theming: selectively enables theming for terminals, editors, and desktop environments.
  • Use Case: You manage multiple machines and want the same look across system and user applications with reproducible config.

Quick Start

To begin, enable Stylix in your configuration, choose a base16 scheme, and specify a wallpaper image, for example:

  • stylix.enable = true
  • stylix.base16Scheme = "<path-to-scheme>"
  • stylix.image = "<path-to-wallpaper>"

Frequently Asked Questions about stylix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate cross-application theming on NixOS?

Automating cross-application theming on NixOS is done by applying a unified color palette and wallpaper-derived theme across desktop environments, terminals, and editors. Stylix handles this automatically using declarative configuration.

How do I generate a Base16 color scheme from a wallpaper in Home Manager?

Generating a Base16 color scheme from a wallpaper in Home Manager requires specifying an image path in your configuration. The system auto-generates the color palette from the specified wallpaper and applies it across supported targets.

Can I selectively apply themes to specific applications on NixOS?

You can selectively apply themes to specific applications on NixOS using per-target theming. This feature enables or disables theming for individual terminals, editors, and desktop environments with sensible defaults.

Does declarative NixOS theming support multi-platform setups?

Declarative NixOS theming supports multi-platform setups by targeting system-wide configurations for NixOS and Home Manager. It enables consistent colors, fonts, and wallpapers across different platforms and desktop environments.

What is the best way to maintain a consistent look across multiple NixOS machines?

Maintaining a consistent look across multiple NixOS machines is best done through declarative configuration that applies unified colors, fonts, and wallpapers. Stylix provides reproducible config to ensure the same visual theme across systems.

Why use declarative configuration for NixOS wallpaper and color theming?

Using declarative configuration for NixOS wallpaper and color theming eliminates manual per-application tweaks. It automates system-wide visual coherence by deriving Base16 color schemes directly from your specified wallpaper.