feat: use assertions to ensure kernel doesn't hit 6.7

This commit is contained in:
buffet 2024-02-07 15:36:30 +01:00
parent f4afa989ce
commit 2f3707f6a7

View file

@ -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";
}
];
}