Experimental legacy boot autoinstall

This commit is contained in:
Emmet 2024-02-29 20:48:15 -06:00
parent 4f676b1057
commit e858bfefa2
4 changed files with 13 additions and 4 deletions

View file

@ -49,7 +49,9 @@
# Use systemd-boot if uefi, default to grub otherwise
boot.loader.systemd-boot.enable = if (systemSettings.bootMode == "uefi") then true else false;
boot.loader.efi.canTouchEfiVariables = if (systemSettings.bootMode == "uefi") then true else false;
boot.loader.efi.efiSysMountPoint = "/boot"; # does nothing if running bios rather than uefi
boot.loader.efi.efiSysMountPoint = systemSettings.bootMountPath; # does nothing if running bios rather than uefi
boot.loader.grub.enable = if (systemSettings.bootMode == "uefi") then false else true;
boot.loader.grub.device = systemSettings.grubDevice; # does nothing if running uefi rather than bios
# Networking
networking.hostName = systemSettings.hostname; # Define your hostname.