From a9402d76500eab999989599f559a1cbc1ecccfd8 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 12 Oct 2024 15:24:30 -0700 Subject: Fix bootloader options --- hosts/arrakis/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'hosts/arrakis') diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix index 8270bca..93c23c4 100644 --- a/hosts/arrakis/default.nix +++ b/hosts/arrakis/default.nix @@ -3,8 +3,16 @@ initrd.kernelModules = [ "zfs" ]; kernelPackages = pkgs.linuxPackages_6_10; loader = { - efi.canTouchEfiVariables = true; - systemd-boot.enable = true; + efi = { + canTouchEfiVariables = true; + efiSysMountPoint = "/efiboot/efi1"; + }; + systemd-boot = { + enable = true; + extraInstallCommands = '' + ${pkgs.rsync}/bin/rsync -av --delete /efiboot/efi1/ /efiboot/efi2 + ''; + }; timeout = 3; }; supportedFilesystems = [ "zfs" ]; -- cgit v1.2.3