Repository navigation
Conversation
nixos-anywhere downloaded its installer from the latest nixos-images GitHub release by default and ran it as root on the server. The flake now builds it (packages.x86_64-linux.kexec-installer) from the nixos-images module with our own nixpkgs, pinned in flake.lock, and just install passes it via --kexec; it falls back to the download with a warning where no x86_64-linux builder is available. Closes #23 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #23
Changes
nixos-images, with both of its nixpkgs inputs following ours. Only its NixOS modules (kexec-installer,noninteractive) are used.packages.x86_64-linux.kexec-installerbuildsnixos-kexec-installer-noninteractive-x86_64-linux.tar.gzfrom our pinned nixpkgs, so the installer is covered byflake.locklike the server itself.just installbuilds it and passes it to nixos-anywhere with--kexec <local file>. nixos-anywhere then uploads it, instead of having the server download the latestnixos-imagesrelease from GitHub.Testing
kexec/run,kexec/bzImage,kexec/initrd,kexec/kexecandkexec/ip, with the file nameinstall.shexpects.--kexecaccepts a local file and uploads it (localUploadCommand).Note
The first
just installon a machine now builds the image, which takes about 15 minutes unless it's already in the Nix store.🤖 Generated with Claude Code
https://claude.ai/code/session_01G22o7QQ17GRtkCqpJNFr9B
Generated by Claude Code