1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-26 21:09:42 +01:00

tests: set linux_latest as the default kernel

This commit is contained in:
Jörg Thalheim 2023-09-19 06:55:17 +02:00
parent 161b027169
commit 87a44ef5c1

View file

@ -1,11 +1,15 @@
{ profile }: { profile }:
let let
shim = { config, ... }: { shim = { config, lib, pkgs, ... }: {
boot.loader.systemd-boot.enable = !config.boot.loader.generic-extlinux-compatible.enable && !config.boot.loader.raspberryPi.enable; boot.loader.systemd-boot.enable = !config.boot.loader.generic-extlinux-compatible.enable && !config.boot.loader.raspberryPi.enable;
# we forcefully disable grub here just for testing purposes, even though some profiles might still use grub in the end. # we forcefully disable grub here just for testing purposes, even though some profiles might still use grub in the end.
boot.loader.grub.enable = false; boot.loader.grub.enable = false;
# so we can have assertions that require a certain minimum kernel version,
# We use a priority of 1200 here, which is higher than the default of 1000
boot.kernelPackages = lib.mkOverride 1200 pkgs.linuxPackages_latest;
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000"; device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs"; fsType = "btrfs";