| Commit message (Expand) | Author | Age | Files | Lines |
| * | treewide: format all inactive Nix files•••After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
| Silvan Mosberger | 2024-12-10 | 1 | -10/+22 |
| * | doc: migrate trivial files to doc-comment format (#299986)•••* doc: migrate trivial files to doc-comment format
* fix: revert some comments
* Apply suggestions from code review
Thanks @danielSidhion
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
* Update lib/types.nix
---------
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
Co-authored-by: Silvan Mosberger <github@infinisil.com> | Johannes Kirschbauer | 2024-04-04 | 1 | -3/+2 |
| * | Avoid top-level `with ...;` in lib/kernel.nix | Philip Taron | 2024-03-11 | 1 | -1/+3 |
| * | lib.kernel.unset: init•••Previously, there was no way to unset an option when overriding a
kernel, apart from writing out the attrset yourself. Now it's
possible with lib.mkForce lib.kernel.unset. It's important to be able
to do this, because setting an option in the override may cause other
options to become unused, which would fail the config build unless
they were overridden too.
| Alyssa Ross | 2023-05-01 | 1 | -3/+4 |
| * | Merge pull request #84032 from teto/fix_kernel_merge•••Fix kernel configuration merge | Florian Klink | 2020-05-22 | 1 | -4/+4 |
| |\ |
|
| | * | kernel: fix config generation•••Addresses https://github.com/NixOS/nixpkgs/issues/71803:
Kernel options are not merged as described, especially the "optional"
aspects. The error silences legitimate warnings.
| Matthieu Coudron | 2020-04-01 | 1 | -4/+4 |
| * | | linux/hardened: move files into directory | Emily | 2020-05-08 | 1 | -1/+1 |
| |/ |
|
| * | lib.kernel: scoped whenXXX helpers•••whenAtLeast/whenBetween are made available in lib/kernel.nix but are now
scoped under whenXXX.
| Matthieu Coudron | 2019-10-01 | 1 | -0/+10 |
| * | lib.kernel: make public•••Remove the "version" parameter in order to make it more widely
available.
Starts making some kernel configuration helpers available.
The intent is to be able to better build and check the linux kernel
configuration.
| Matthieu Coudron | 2019-10-01 | 1 | -6/+1 |
| * | treewide: remove redundant rec | volth | 2019-08-28 | 1 | -1/+1 |
| * | linux: convert hardened-config to a structured one | Matthieu Coudron | 2019-01-28 | 1 | -1/+6 |
| * | linux: ability to merge structured configs•••This should make the composability of kernel configurations more straigthforward.
- now distinguish freeform options from tristate ones
- will look for a structured config in kernelPatches too
one can now access the structuredConfig from a kernel via linux_test.configfile.structuredConfig
in order to reinject it into another kernel, no need to rewrite the config from scratch
The following merge strategies are used in case of conflict:
-- freeform items must be equal or they conflict (mergeEqualOption)
-- for tristate (y/m/n) entries, I use the mergeAnswer strategy which takes the best available value, "best" being defined by the user (by default "y" > "m" > "n", e.g. if one entry is both marked "y" and "n", "y" wins)
-- if one item is both marked optional/mandatory, mandatory wins (mergeFalseByDefault)
| Matthieu Coudron | 2019-01-28 | 1 | -49/+8 |
| * | linux: translate config to structured config•••Instead of using a string to describe kernel config, use a nix
attribute set, then converted to a string.
- allows to override the config, aka convert 'yes' into 'modules' or
vice-versa
- while for now merging different configs is still crude (last spec wins),
at least there should be only one CONFIG_XYZ value compared to the current string
config where the first defined would be used and others ignored.
[initial idea by copumpkin in 2016, a major rebase to 2018 by teto]
| Dan Peebles | 2018-06-30 | 1 | -0/+57 |