nixos-generators icon indicating copy to clipboard operation
nixos-generators copied to clipboard

Ability to reconfigure machines built with generators

Open paulvictor opened this issue 1 year ago • 1 comments

Hello, I have been able to generate Amazon images(among other variants) by using the nixosGenerate function. Once on the instance, for me to rebuild-switch, I find it difficult because I would still like to have the options set by ${modulesPath}/virtualisation/amazon-image.nix available. Is there a way possible. One possibility I can think of is if the nixosGenerate function return the image value and have another attribute in the final attrset for the actual image artifact. Can you let me know of any other way this can be done?

Thanks Paul

paulvictor avatar Oct 30 '24 13:10 paulvictor

I just came across https://github.com/nix-community/nixos-generators/pull/256 , would using nixos-generators as a module solve my problem?

paulvictor avatar Oct 30 '24 14:10 paulvictor