From 4a758ec029ba64ec4ddbb4b7c8cec573ecdcd652 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 21 Dec 2020 16:38:09 +0800 Subject: [PATCH] nixops: switch to grub Grub supports selecting specialisations at boot time. --- nixops/chiron-hardware-configuration.nix | 4 +++- nixops/hera-hardware-configuration.nix | 4 +++- nixops/hestia-hardware-configuration.nix | 4 +++- nixops/juno-hardware-configuration.nix | 4 +++- nixops/zeus-hardware-configuration.nix | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/nixops/chiron-hardware-configuration.nix b/nixops/chiron-hardware-configuration.nix index 719dac47..ac138db4 100644 --- a/nixops/chiron-hardware-configuration.nix +++ b/nixops/chiron-hardware-configuration.nix @@ -25,6 +25,8 @@ nix.maxJobs = lib.mkDefault 16; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.loader.systemd-boot.enable = true; + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; } diff --git a/nixops/hera-hardware-configuration.nix b/nixops/hera-hardware-configuration.nix index d43953c8..11375929 100644 --- a/nixops/hera-hardware-configuration.nix +++ b/nixops/hera-hardware-configuration.nix @@ -25,6 +25,8 @@ nix.maxJobs = lib.mkDefault 16; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.loader.systemd-boot.enable = true; + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; } diff --git a/nixops/hestia-hardware-configuration.nix b/nixops/hestia-hardware-configuration.nix index 69d5e892..fd91e9d4 100644 --- a/nixops/hestia-hardware-configuration.nix +++ b/nixops/hestia-hardware-configuration.nix @@ -25,6 +25,8 @@ nix.maxJobs = lib.mkDefault 16; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.loader.systemd-boot.enable = true; + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; } diff --git a/nixops/juno-hardware-configuration.nix b/nixops/juno-hardware-configuration.nix index bb8e0dae..d55d3d99 100644 --- a/nixops/juno-hardware-configuration.nix +++ b/nixops/juno-hardware-configuration.nix @@ -25,6 +25,8 @@ nix.maxJobs = lib.mkDefault 8; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.loader.systemd-boot.enable = true; + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; } diff --git a/nixops/zeus-hardware-configuration.nix b/nixops/zeus-hardware-configuration.nix index 27419aa5..bea50698 100644 --- a/nixops/zeus-hardware-configuration.nix +++ b/nixops/zeus-hardware-configuration.nix @@ -25,6 +25,8 @@ nix.maxJobs = lib.mkDefault 16; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; - boot.loader.systemd-boot.enable = true; + boot.loader.grub.enable = true; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; boot.loader.efi.canTouchEfiVariables = true; }