Skip to content

Simplify kernel build #2296

@edolstra

Description

@edolstra

The kernel build / configuration is now unnecessarily complicated:

  • There is a generic.nix and the oddly named manual-config.nix.
  • The kernel config can be specified in multiple ways, namely as a string and as an attribute set. The latter doesn't appear to be used anywhere. Kernel configuration can also come from pkgs/top-level/platforms.nix.
  • manual-config.nix has an "import from derivation" feature, which appears to be unused except by the NixOS system.requiredKernelConfig option, which is itself unused (AFAIK).

We should merge generic.nix and manual-config.nix, drop the configuration via attribute sets and platforms.nix (alternatively, convert the string configuration to attribute set), and drop the "import from derivation" stuff.

Metadata

Metadata

Assignees

Labels

0.kind: enhancementAdd something new or improve an existing system.2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: kernelThe Linux kernel
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions