nixos/sd-image-aarch64-base: extracted from sd-image-aarch64 #108880
Closed
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.
This is a backwards-compatible change. It extracts a chunk from the
sd-image-aarch64.nix
expression and moves it intosd-image-aarch64-base.nix
(without modifications).The new
sd-image-aarch64-base
module does not import "base", and "installable device" profiles. The image is therefore smaller and does not contain passwordless root logins.Motivation for this change
The ability to build a minimal image that can be used directly (avoiding the base profile or the installation device profile).
Without this change, you have to create a local copy of the
sd-image-aarch64.nix
expression (to remove the base profile and installation device profile from imports).Things done
I built and successfully ran images on Raspberry Pi 3 and Raspberry Pi 4 (with a bunch of services, like prometheus and grafana running on them without a problem).
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)