nixos already provides a way to build multiple configurations at the same time. See nesting.clone option or such in top-level.nix. That's what you want to base your work on - or reuse it eventually. Marc Weber