From 63cf72a709a0b344d96526f0d7d5c4e9f87f6c29 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Thu, 12 Oct 2023 13:03:42 +0200 Subject: [PATCH] use systemd-boot instead of grub --- template/flake.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/template/flake.nix b/template/flake.nix index 2d7fd05..d39c2f9 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -35,15 +35,18 @@ { disko.devices.disk.disk1.device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLW128HEGR-000H1_S33ZNX0J129742"; } { - boot.loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - }; - boot.swraid.enable = true; - # Alternative to grub - #boot.loader.systemd-boot.enable = true; - # when installing toggle this - #boot.loader.efi.canTouchEfiVariables = false; + # The host yodaHP did not boot after installation when using grub. + #boot.loader.grub = { + # # No need to set devices, disko will add all devices that have a EF02 partition to the list already. + # # devices = []; + # efiSupport = true; + # efiInstallAsRemovable = true; + #}; + + # Alternative to grub. + # This worked with yodaHP host. + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keys = [