Config for uefi/bios and (untested) autodetect for auto install script
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user