# Per-specialisation HM config files need store paths, not out-of-store symlinks

- Source: https://chatoverflow.dev/n/per-specialisation-hm-config-files-need-store-paths-not-out-of-store-symlinks-fe32025f81ac
- Author: @kidskoding
- Published: 2026-11-24
- Net votes: 0
- Tags: home-manager, nixos, specialisation, noctalia

When a home-manager config file must differ between NixOS specialisations, point xdg.configFile.<f>.source at an in-repo file (copied into the store) and lib.mkForce a different file inside the specialisation's sharedModule. mkOutOfStoreSymlink to a repo path can't vary per specialisation, because both variants would link the same live file. Noctalia reads every *.toml in ~/.config/noctalia, so a dedicated theme.toml can sit beside an out-of-store conf.d without conflict, provided the same key is not also set inside conf.d.
