diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-04-29 10:20:37 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-04-29 10:20:37 +0200 |
commit | 272a7f0aeca0fccf3cc935a3eed51d064720d864 (patch) | |
tree | 226329f110367836120e8e3e15e56c4d49d98928 | |
parent | 6529a9248fae3e627ef85d2eaa29c68abc771efb (diff) | |
download | nixos-272a7f0aeca0fccf3cc935a3eed51d064720d864.tar nixos-272a7f0aeca0fccf3cc935a3eed51d064720d864.tar.gz nixos-272a7f0aeca0fccf3cc935a3eed51d064720d864.tar.bz2 nixos-272a7f0aeca0fccf3cc935a3eed51d064720d864.tar.xz nixos-272a7f0aeca0fccf3cc935a3eed51d064720d864.zip |
...
-rw-r--r-- | hosts/vidhar/default.nix | 2 | ||||
-rw-r--r-- | hosts/vidhar/network/dhcp/default.nix | 14 |
2 files changed, 15 insertions, 1 deletions
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; | |||
387 | algorithm = "zstd"; | 387 | algorithm = "zstd"; |
388 | }; | 388 | }; |
389 | 389 | ||
390 | environment.systemPackages = with pkgs; [iotop vmtouch inetutils]; | 390 | environment.systemPackages = with pkgs; [iotop vmtouch]; |
391 | 391 | ||
392 | systemd.sysusers.enable = false; | 392 | systemd.sysusers.enable = false; |
393 | system.stateVersion = "21.05"; | 393 | 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 { | |||
281 | :start | 281 | :start |
282 | menu iPXE boot menu for installer-${system} | 282 | menu iPXE boot menu for installer-${system} |
283 | item installer Boot installer-${system} | 283 | item installer Boot installer-${system} |
284 | item memtest memtest86plus | ||
284 | item netboot netboot.xyz | 285 | item netboot netboot.xyz |
285 | item shell iPXE shell | 286 | item shell iPXE shell |
286 | choose --timeout 0 --default installer selected || goto shell | 287 | choose --timeout 0 --default installer selected || goto shell |
@@ -297,6 +298,10 @@ in { | |||
297 | :netboot | 298 | :netboot |
298 | chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi | 299 | chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi |
299 | goto start | 300 | goto start |
301 | |||
302 | :memtest | ||
303 | chain --autofree ${nfsrootBaseUrl}/memtest.efi | ||
304 | goto start | ||
300 | ''; | 305 | ''; |
301 | }) | 306 | }) |
302 | ]; | 307 | ]; |
@@ -305,6 +310,10 @@ in { | |||
305 | (pkgs.linkFarm "netbootxyz-efi" [ | 310 | (pkgs.linkFarm "netbootxyz-efi" [ |
306 | { name = "netboot.xyz.efi"; path = pkgs.netbootxyz-efi; } | 311 | { name = "netboot.xyz.efi"; path = pkgs.netbootxyz-efi; } |
307 | ]) | 312 | ]) |
313 | (pkgs.runCommandLocal "memtest" {} '' | ||
314 | mkdir $out | ||
315 | install -t $out ${pkgs.memtest86plus}/memtest.efi | ||
316 | '') | ||
308 | (let | 317 | (let |
309 | eostreBuild = (flake.nixosConfigurations.eostre.extendModules { | 318 | eostreBuild = (flake.nixosConfigurations.eostre.extendModules { |
310 | modules = [ | 319 | modules = [ |
@@ -331,6 +340,7 @@ in { | |||
331 | :start | 340 | :start |
332 | menu iPXE boot menu for eostre | 341 | menu iPXE boot menu for eostre |
333 | item eostre Boot eostre | 342 | item eostre Boot eostre |
343 | item memtest memtest86plus | ||
334 | item netboot netboot.xyz | 344 | item netboot netboot.xyz |
335 | item shell iPXE shell | 345 | item shell iPXE shell |
336 | choose --timeout ''${menu-timeout} --default eostre selected || goto shell | 346 | choose --timeout ''${menu-timeout} --default eostre selected || goto shell |
@@ -348,6 +358,10 @@ in { | |||
348 | :netboot | 358 | :netboot |
349 | chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi | 359 | chain --autofree ${nfsrootBaseUrl}/netboot.xyz.efi |
350 | goto start | 360 | goto start |
361 | |||
362 | :memtest | ||
363 | chain --autofree ${nfsrootBaseUrl}/memtest.efi | ||
364 | goto start | ||
351 | ''; | 365 | ''; |
352 | }) | 366 | }) |
353 | ]; | 367 | ]; |