Files
colin 4e3a152ae9 build an image which can boot from SD if tow-boot is installed to the eMMC
temporarily disabled some modules to get a smaller, faster to iterate,
image.

need to test flashing tow-boot to the start of the SD card
2022-06-17 19:45:53 -07:00

29 lines
861 B
Nix

{ lib, ... }:
{
# boot.initrd.supportedFilesystems = [ "ext4" "btrfs" "ext2" "ext3" "vfat" ];
# Use the systemd-boot EFI boot loader.
boot.loader.grub.enable = false;
# boot.loader.systemd-boot.enable = true;
# boot.loader.systemd-boot.configurationLimit = 20; # keep this many generations
# boot.loader.efi.canTouchEfiVariables = true;
boot.loader.generic-extlinux-compatible.enable = true;
mobile.bootloader.enable = lib.mkForce false;
# boot.loader.grub.enable = true;
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.grub.device = "nodev";
hardware.enableRedistributableFirmware = true;
fileSystems."/boot" = {
device = "/dev/disk/by-label/ESP";
fsType = "vfat";
};
fileSystems."/" = {
device = "/dev/disk/by-label/nixos-img";
fsType = "ext4";
};
}