That’s because /etc/os-release is not in the build sandbox, and for good reason. Derivations are supposed to be reproducible, and os-release is system-specific (or at least OS-specific). It’s an impurity that would cause the derivation to build differently on different machines.
Whatever it is that needs os-release, it should either A) be changed to not need it, B) be provided a dummy value somehow in the sandbox, or C) be run in a VM in the build (see runInLinuxVM).
Because I want to keep all config files for now inside chezmoi, which is an easier tool to deploy them.
Transfering all dotfiles into a nix approach is vast amount of work and the benefits ok, Windows then does not work (but who needs to use this shit anyway…)…
Do deploy the dot file I only need chezmoi and not nix… is that a fair point? Maybe sometime later…