Config for uefi/bios and (untested) autodetect for auto install script

This commit is contained in:
Emmet 2024-02-28 19:47:06 -06:00
parent 3eb87c59f2
commit 2d4a3c65b0
3 changed files with 25 additions and 3 deletions

View file

@ -46,9 +46,10 @@
boot.kernelModules = [ "i2c-dev" "i2c-piix4" "cpufreq_powersave" ];
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot";
# 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
# Networking
networking.hostName = systemSettings.hostname; # Define your hostname.