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

Linode: Use nixos module

Open cyntheticfox opened this issue 2 years ago • 3 comments

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.

cyntheticfox avatar Feb 07 '23 14:02 cyntheticfox

@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.

paperdigits avatar Apr 15 '23 05:04 paperdigits

@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

cyntheticfox avatar Apr 15 '23 09:04 cyntheticfox

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 ?

jtara1 avatar Jul 15 '23 22:07 jtara1