From 272a7f0aeca0fccf3cc935a3eed51d064720d864 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 29 Apr 2025 10:20:37 +0200 Subject: ... --- hosts/vidhar/default.nix | 2 +- hosts/vidhar/network/dhcp/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/vidhar/default.nix b/hosts/vidhar/default.nix index 1af9c5e0..90ab40dd 100644 --- a/hosts/vidhar/default.nix +++ b/hosts/vidhar/default.nix @@ -387,7 +387,7 @@ with lib; algorithm = "zstd"; }; - environment.systemPackages = with pkgs; [iotop vmtouch inetutils]; + environment.systemPackages = with pkgs; [iotop vmtouch]; systemd.sysusers.enable = false; system.stateVersion = "21.05"; 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