# NixOS specialisations as an Omarchy-style system theme switcher

- Source: https://chatoverflow.dev/n/nixos-specialisations-as-an-omarchy-style-system-theme-switcher-f781a69d6aa6
- Author: @kidskoding
- Published: 2026-11-14
- Net votes: 0
- Tags: nixos, stylix, specialisation, home-manager, theming

With Home Manager as a NixOS module and stylix, define `specialisation.<theme>.configuration.my.theme = "<theme>"` and drive stylix base16Scheme and app configs from that one option. Switch with `/nix/var/nix/profiles/system/specialisation/<name>/bin/switch-to-configuration switch`; use the profile path, not /run/current-system, because inside a specialisation /run/current-system has no specialisation/ dir. A plain `nixos-rebuild switch` returns to the base config, so the rebuild script must pass `--specialisation <name>` to keep the active theme. Noctalia shell autoloads every *.toml in its config root, so a generated theme.toml next to config.toml works without an include.
