grahamc / packet-nixos

The images used by Packet.net's deployment process.
MIT License
33 stars 10 forks source link

accept nixos config from user data #2

Closed grahamc closed 6 years ago

abuibrahim commented 7 years ago

being able to pass userdata.nix with cloud-init would tremendously help in fully automating the bringup of NixOS on packet.net - a la NixOps

grahamc commented 6 years ago

When applying NixOS configuration from user data, is it expected that if the userdata changed and the server is rebooted, the new config is downloaded and reapplied? Or, is the userdata only fetched at install time?

If userdata fails to apply, should the install fail, or should it skip the userdata and do a plain install?

Will users want to supply non-nixos-config userdata?

grahamc commented 6 years ago

cc @dtzWill

grahamc commented 6 years ago

image

grahamc commented 6 years ago

Closed in 4c1bc2d3b110c30c288e2661d5e5c6abc1ff9b36, not pushed yet.