-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sd-image: remove implicit profiles/all-hardware #128532
base: master
Are you sure you want to change the base?
Conversation
@@ -1,6 +1,7 @@ | |||
{ config, ... }: | |||
{ | |||
imports = [ | |||
../../profiles/all-hardware.nix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this added to this "alias-like" file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No good reason, it just felt bad to not limit the impact of this change.
To be fair for the most part it was... the fact that I had a config/closure, and only wanted to pull in the SD image generation options to build an image of the system. It felt rather presumptuous of it to set a bunch of options as if I wanted to generate some bloated "installer" image. It certainly was not my intention to create a system that could even remotely be described as "all-hardware" just because I wanted to place it on an SD card? ... but maybe that's my fault for trying to use a module under the "installer/" subdir and the real solution here is to move it to a different name/path without the same connotations? It's generically useful for a lot more than just building an installer image.
Hm so the modules were part of it, but so were the firmware options. It all generally made initrd way too large to fit in memory to boot with. |
I wonder if we ever use the I agree with the thought about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me 👍
Edit: maybe just rebase on a recent nixpkgs-unstable
.
7d36109
to
9eeb28e
Compare
Hm there shouldn't have been conflicts but rebased just in case! |
9eeb28e
to
9f4dbad
Compare
rebased again (this commit is basically just |
Looks good to me 👍 Unfortunately, I don't have the permissions to merge PRs in this repo. @samueldr, FYI |
Removes the implicit profiles/all-hardware from SD image generation.
Rebased again 😥 cc @samueldr |
Motivation for this change
Allows SD images to be created for systems not compatible with the all-hardware profile.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)