Description
Preface
I am currently investigating (and enjoying) using nixos as my metal host OS, where I will deploy distributed hosts using netboot.
I truly appreciate any thoughts and discussion on this topic. Something I am passionate about and am working towards for my own infrastructure is a baremetal orchestration experience akin to Canonical's Metal as a Service, Equinix's Tinkerbell, or something like Sidero Metal but using nix.
I am trying to understand how disko may fit into my baremetal orchestration plan, and would appreciate any discussion pertaining to use. I am only about 1 month into my nix journey, so please excuse any ignorance in questions. If there is a better place to discuss this, please let me know.
Disko
I am currently working on generating an ISO with nixos-generator to deploy via some pxe server like pixecore or netboot, and would like help to understand how I may use disko in this process.
Questions
-
If using pxe is there a way to have no user input to have disko format drives during pxe boot or would a subsequent step like using nixos-anywhere be required? (I am trying to avoid the ssh requirement of nixos-anywhere and just deploy a built image)
-
Is it possible to not run formatting if drives are already formatted (e.g. just deploying a new build of image)? I currently have circumstances where filesystems are not ephemeral, and also where they are.
Potential Solutions
This morning I am wondering about using some script with disko and nixos-anywhere to install nixos minimally to format drives when needed, and then deploy a generated iso with pxe where fileSystems are then defined without disko, but mapped to what disko formatted in previous step.
Is this logical? Is there a better solution?