Skip to content
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

There should be an easy method to add extra kernel config in your configuration.nix file. #20187

Open
spacekitteh opened this issue Nov 5, 2016 · 8 comments
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: community feedback

Comments

@spacekitteh
Copy link
Contributor

spacekitteh commented Nov 5, 2016

Soooo... It seems that the kernels are built without taking into consideration system.requiredKernelConfig. If I have a package which requires a certain non-standard kernel feature to be enabled, or want to disable unnecessary features for size/performance/security in my configuration.nix, I should be able to do it in a nice way.

Related to PR "[WIP] linux: translate kernel config to structured config" #12158

@spacekitteh spacekitteh changed the title system.requiredKernelConfig should actually affect the kernel configuration. There should be an easy method to add extra kernel config in your configuration.nix file. Nov 6, 2016
@NeQuissimus NeQuissimus added 0.kind: bug Something is broken 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: kernel The Linux kernel 9.needs: community feedback labels Nov 6, 2016
@Profpatsch
Copy link
Member

(triage) has this been added?

@teto
Copy link
Member

teto commented Jun 24, 2018

Not sure where to find the nixpkgs doc but I wrote some doc on how to pass extra args, excerpt from my overlay:

  my_lenovo_kernel = prev.linux_latest.override({
    extraConfig = bpfConfig + net9pConfig + mininetConfig + ''
      OPENVSWITCH m
    '' ;
  });

I don't think you can disable default args without writing your own full config but that should change with #41393

@teto
Copy link
Member

teto commented Feb 24, 2019

@JohnAZoidberg
Copy link
Member

Doesn't #42838 solve this?

@teto
Copy link
Member

teto commented Apr 20, 2019

Ops' opening:

It seems that the kernels are built without taking into consideration system.requiredKernelConfig

is adressed by #55755 which is just a PoC. Hoping to get some feedback before cleaning up (now that the "koi" release is out, we may get more).

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@spacekitteh
Copy link
Contributor Author

still care

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
@stale
Copy link

stale bot commented Nov 30, 2020

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: kernel The Linux kernel 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 9.needs: community feedback
Projects
None yet
Development

No branches or pull requests

5 participants