nix-community / nixos-generators

Collection of image builders [maintainer=@Lassulus]
MIT License
1.76k stars 136 forks source link

Linode: Use nixos module #208

Open cyntheticfox opened 1 year ago

cyntheticfox commented 1 year ago

The Linode config created in #175 largely exists upstream as nixos/modules/virtualisation/linode-image.nix (an effort that predates it and took forever to get merged). Since this is released as of 22.11, could we configure the Linode generator to use that?

I created a corresponding patch to the Nixpkgs PR for nixos-generators in https://github.com/houstdav000/nixos-generators/tree/feature/linode, but it may need some updating.

paperdigits commented 1 year ago

@cyntheticfox does the default linode generator produce an image that boots on linode for you? It produces the image for me, but the image doesn't boot.

cyntheticfox commented 1 year ago

@cyntheticfox does the default linode generator produce an image that boots on linode for you? It produces the image for me, but the image doesn't boot.

Did you set the boot kernel to GRUB2? Theres a number of platform-only settings you have to configure to get it to boot, mostly documented in the pull request (gotta find that again later...), which isnt great...

EDIT: Found it: https://github.com/NixOS/nixpkgs/pull/155426

jtara1 commented 1 year ago

Is this a manual way to do this in the meantime? Copy the 3 .nix files from nixpkgs repo, update the imports, specify by nixos-generate -f linode -c linode-image.nix ?