Add minimal netboot module to build kexec image

This commit is contained in:
Rodrigo Arias 2023-04-27 16:36:15 +02:00
parent 919f211536
commit c3ea8864bb
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
{
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.enable = lib.mkForce true;
boot.loader.grub.version = 2;
# Enable GRUB2 serial console

View File

@ -1,10 +1,12 @@
{ config, pkgs, ... }:
{ config, pkgs, modulesPath, lib, ... }:
{
imports = [ ../common/main.nix ];
imports = [ ../common/main.nix (modulesPath + "/installer/netboot/netboot-minimal.nix") ];
# Select the this using the ID to avoid mismatches
boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d535629";
#programs.ssh.forwardX11 = false;
programs.ssh.setXAuthLocation = lib.mkForce true;
networking = {
hostName = "xeon02";