mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Experimental legacy boot autoinstall
This commit is contained in:
parent
4f676b1057
commit
e858bfefa2
4 changed files with 13 additions and 4 deletions
|
@ -28,9 +28,12 @@
|
|||
boot.kernelModules = [ "i2c-dev" "i2c-piix4" ];
|
||||
|
||||
# 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 = 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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue