Merge pull request #58207 from teto/kernelPackages_check

boot.kernelPackages: check for conflicts
It's currently possible to set conflicting `boot.kernelPackages` several times.
Nixos now warns when this is the case instead of just picking one.
This commit is contained in:
Matthieu Coudron
2019-08-20 14:15:51 +09:00
committed by GitHub
4 changed files with 11 additions and 5 deletions
+1
View File
@@ -36,6 +36,7 @@ in
boot.kernelPackages = mkOption {
default = pkgs.linuxPackages;
type = types.unspecified // { merge = mergeEqualOption; };
apply = kernelPackages: kernelPackages.extend (self: super: {
kernel = super.kernel.override {
inherit randstructSeed;