In my configuration.nix
I set:
system.activationScripts.zz-test = {
text = ''env | sort'';
supportsDryActivation = true;
};
I then invoke sudo NO_COLOR=1 nixos-rebuild dry-activate
, but env
does not list NO_COLOR
.
How do I pass through environment variables to system.activationScripts
? I do not want to set them statically in the activation script itself, but want to be able to influence the behaviour when I run nixos-rebuild
.