feat: use assertions to ensure kernel doesn't hit 6.7
This commit is contained in:
parent
f4afa989ce
commit
2f3707f6a7
1 changed files with 8 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
|
||||
boot = {
|
||||
supportedFilesystems = ["bcachefs"];
|
||||
kernelPackages = pkgs.linuxPackages_6_7; # TODO: remove when default kernel hits 6.7
|
||||
kernelPackages = pkgs.linuxPackages_6_7;
|
||||
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
|
@ -50,4 +50,11 @@
|
|||
experimental-features = nix-command flakes
|
||||
'';
|
||||
};
|
||||
|
||||
assertions = [
|
||||
{
|
||||
assertion = -1 == builtins.compareVersions pkgs.linuxPackages.kernel.version "6.7.3";
|
||||
message = "default kernel has hit 6.7, change linuxPackages to default";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue