1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2025-01-11 03:19:48 +01:00

rpi2: switch to extlinux bootloader

This commit is contained in:
Jörg Thalheim 2025-01-07 08:21:10 +01:00 committed by mergify[bot]
parent 95a812557b
commit 75a920536c
2 changed files with 2 additions and 5 deletions

View file

@ -13,10 +13,7 @@
loader = {
grub.enable = lib.mkDefault false;
generationsDir.enable = lib.mkDefault false;
raspberryPi = {
enable = lib.mkDefault true;
version = lib.mkDefault 2;
};
generic-extlinux-compatible.enable = lib.mkDefault true;
};
};

View file

@ -4,7 +4,7 @@
profile
({ config, lib, ... }: {
nixpkgs.pkgs = 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;
# 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;