Skip to content

Commit

Permalink
tests: set linux_latest as the default kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 19, 2023
1 parent 161b027 commit 17c56c1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/build-profile.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{ profile }:

let
shim = { config, ... }: {
shim = { config, lib, pkgs, ... }: {
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.
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.linuxKernel.packages.linux_latest;

fileSystems."/" = {
device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000";
fsType = "btrfs";
Expand Down

0 comments on commit 17c56c1

Please sign in to comment.