From 272a7f0aeca0fccf3cc935a3eed51d064720d864 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 29 Apr 2025 10:20:37 +0200 Subject: ... --- hosts/vidhar/network/dhcp/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'hosts/vidhar/network') diff --git a/hosts/vidhar/network/dhcp/default.nix b/hosts/vidhar/network/dhcp/default.nix index 4151111d..38dd9ae8 100644 --- a/hosts/vidhar/network/dhcp/default.nix +++ b/hosts/vidhar/network/dhcp/default.nix @@ -281,6 +281,7 @@ in { :start menu iPXE boot menu for installer-${system} item installer Boot installer-${system} + item memtest memtest86plus item netboot netboot.xyz item shell iPXE shell choose --timeout 0 --default installer selected || goto shell @@ -297,6 +298,10 @@ in { :netboot chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi goto start + + :memtest + chain --autofree ${nfsrootBaseUrl}/memtest.efi + goto start ''; }) ]; @@ -305,6 +310,10 @@ in { (pkgs.linkFarm "netbootxyz-efi" [ { name = "netboot.xyz.efi"; path = pkgs.netbootxyz-efi; } ]) + (pkgs.runCommandLocal "memtest" {} '' + mkdir $out + install -t $out ${pkgs.memtest86plus}/memtest.efi + '') (let eostreBuild = (flake.nixosConfigurations.eostre.extendModules { modules = [ @@ -331,6 +340,7 @@ in { :start menu iPXE boot menu for eostre item eostre Boot eostre + item memtest memtest86plus item netboot netboot.xyz item shell iPXE shell choose --timeout ''${menu-timeout} --default eostre selected || goto shell @@ -348,6 +358,10 @@ in { :netboot chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi goto start + + :memtest + chain --autofree ${nfsrootBaseUrl}/memtest.efi + goto start ''; }) ]; -- cgit v1.2.3