mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Config for uefi/bios and (untested) autodetect for auto install script
This commit is contained in:
parent
3eb87c59f2
commit
2d4a3c65b0
3 changed files with 25 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue