mynixos / support

MyNixOS issues + user feedback
3 stars 0 forks source link

error when building flake that services.k3s.clusterInit does not exist #4

Closed prabhu-madanagopal closed 1 year ago

prabhu-madanagopal commented 1 year ago

Hi I am trying to build nixos iso to run k3s server. I get the below error, could you please help? Not sure how a config cannot exist when it was added from selection. Link to flake: https://mynixos.com/prabhu-madanagopal/k3s-server/versions Both k3s-server-init and k3s-server-join have the same issue.

error: The option `services.k3s.clusterInit' does not exist. Definition values:

pveierland commented 1 year ago

It appears that the lockfile for nixos-generators is severely outdated, causing your output to be evaluated with a nixpkgs version which does not have the services.k3s.clusterInit option. Adding a follow from the flake inputs screen from nixos-generators/nixpkgs to nixpkgs, then re-releasing the flake, should resolve the issue.

prabhu-madanagopal commented 1 year ago

Updated inputs and added follow but still failing. https://mynixos.com/prabhu-madanagopal/k3s-server/inputs

pveierland commented 1 year ago

Version 2 of the flake you have linked appears to have the correct follow set up, however no build has been attempted for this version. I'd recommend performing a build action on version 2 of this flake.

prabhu-madanagopal commented 1 year ago

Thx, it worked! I had dismissed actions earlier not sure if that's why you did not see the attempted build that had failed, but it works now after I did one more release and build. Thank you.