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

New linuxPackages_custom helper function #5999

Merged
merged 1 commit into from
Feb 8, 2015
Merged

Conversation

ts468
Copy link
Contributor

@ts468 ts468 commented Jan 26, 2015

Add linuxPackages_custom helper function for installing a Linux kernel with a custom config file.

@ts468
Copy link
Contributor Author

ts468 commented Jan 28, 2015

As an example, I use linuxPackages_custom in my /etc/nixos/configuration.nix as in the example below. Is there another configuration option that achieves the same and is already included in NixOS?

boot.kernelPackages = pkgs.linuxPackages_custom {
version = "3.18.1-xen";
src = pkgs.fetchurl {
url = "mirror://kernel/linux/kernel/v3.x/linux-3.18.1.tar.xz";
sha256 = "13m0s2m0zg304w86yvcmxgbjl41c4kc420044avi8rnr1xwcscsq";
};
configfile = /etc/nixos/customKernel.config;
};

@jagajaga
Copy link
Member

👍

@ts468
Copy link
Contributor Author

ts468 commented Jan 30, 2015

@jagajaga, glad you like it ;), could you maybe merge it?

@jagajaga
Copy link
Member

Can you show /etc/nixos/customKernel.config?

@ts468
Copy link
Contributor Author

ts468 commented Jan 30, 2015

It is just a standard kernel config file; what is it that you're looking for?

@jagajaga
Copy link
Member

jagajaga commented Feb 1, 2015

Hm. The problem is that I think that we have to document it somewhere.
May be for now you can just write some information in comments above your new code?

@jagajaga
Copy link
Member

jagajaga commented Feb 5, 2015

Some updates? :)

@ts468
Copy link
Contributor Author

ts468 commented Feb 5, 2015

I think it would be best to put some note into https://nixos.org/wiki/How_to_tweak_Linux_kernel_config_options

@jagajaga
Copy link
Member

jagajaga commented Feb 5, 2015

Can you do it? Then I'll merge.

@ts468
Copy link
Contributor Author

ts468 commented Feb 8, 2015

@jagajaga: So, I've updated the wiki. Could you please merge the PR?

@jagajaga
Copy link
Member

jagajaga commented Feb 8, 2015

Nice! Thank you.

jagajaga added a commit that referenced this pull request Feb 8, 2015
New linuxPackages_custom helper function
@jagajaga jagajaga merged commit b24513b into NixOS:master Feb 8, 2015
@ts468 ts468 deleted the custom-kernel branch February 21, 2015 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants