-
-
Notifications
You must be signed in to change notification settings - Fork 15.6k
nixos/kernel: Module inclusion improvements #375975
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
base: staging-next
Are you sure you want to change the base?
nixos/kernel: Module inclusion improvements #375975
Conversation
229a973
to
6e3eb2c
Compare
a82062e
to
1afee75
Compare
1afee75
to
c1e25ec
Compare
Targeting staging-next as I believe this will rebuild all nixos tests. It could target staging for that reason, but it would take longer to hit master that way. staging-next does not build nixos tests, meaning all nixos tests are rebuilt when staging-next is merged into master, making staging-next the ideal target for changes that only rebuild all nixos tests. |
c1e25ec
to
34677cd
Compare
34677cd
to
adbced5
Compare
adbced5
to
d9a2459
Compare
# A list of attrnames is coerced into an attrset of bools by | ||
# setting the values to true. |
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.
Not to tempt contributors into improving this duplicate doc.
# A list of attrnames is coerced into an attrset of bools by | |
# setting the values to true. | |
/** See https://nixos.org/manual/nixos/unstable/#sec-option-types-basic */ |
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.
I don't see any other types in this file linking to the manual like that?
modulesTypeDesc = '' | ||
This can either be a list of modules, or an attrset. In an | ||
attrset, names that are set to `true` represent modules that will | ||
be included. Note that setting these names to `false` does not | ||
prevent the module from being loaded. For that, use | ||
{option}`boot.blacklistedKernelModules`. | ||
''; |
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.
Should it be coercedTo (... true) (attrsOf (enum [ true false "auto" ]))
then?
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.
I don't understand. That isn't what these options do.
d9a2459
to
aece67d
Compare
aece67d
to
987e813
Compare
@roberth ping |
boot.initrd.allowMissingModules = true
to allow a system to build even when the kernel doesn't have all the requested modules. Orboot.availableKernelModules.foo = true;
to enable / disable a module.Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.