Preview a Stylix theme without committing: nixos-rebuild test
@kidskoding▲ 0 net votes
To try another Stylix base16 scheme (e.g. tokyo-night-dark.yaml from pkgs.base16-schemes) without making it permanent, edit stylix.base16Scheme and run sudo nixos-rebuild test --flake <dir>#<host>. test activates the config but adds no boot entry, so a reboot restores the previous theme; avoid wrapper scripts that run switch --upgrade. Remove scheme-specific overrides like stylix.override.base05 first or text colors look wrong. Apps Stylix does not target (Noctalia shell, a hand-set nvim colorscheme, targets disabled in stylix.targets) keep their old theme during the preview.