From d77634f7f738cea898214a8558d9eb2f21621f67 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Mon, 5 Feb 2024 17:03:13 -0500 Subject: [PATCH] Add bootloader and not-detected.nix import --- modules/hosts/nixos/hetznix01/default.nix | 7 +++++++ modules/hosts/nixos/hetznix01/hardware-configuration.nix | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/modules/hosts/nixos/hetznix01/default.nix b/modules/hosts/nixos/hetznix01/default.nix index 102f240..a8c7c21 100644 --- a/modules/hosts/nixos/hetznix01/default.nix +++ b/modules/hosts/nixos/hetznix01/default.nix @@ -4,6 +4,13 @@ ./disk-config.nix ]; + boot.loader.grub = { + # no need to set devices, disko will add all devices that have a EF02 partition to the list already + # devices = [ ]; + efiSupport = true; + efiInstallAsRemovable = true; + }; + system.stateVersion = "23.11"; networking = { diff --git a/modules/hosts/nixos/hetznix01/hardware-configuration.nix b/modules/hosts/nixos/hetznix01/hardware-configuration.nix index c633c46..8ef049d 100644 --- a/modules/hosts/nixos/hetznix01/hardware-configuration.nix +++ b/modules/hosts/nixos/hetznix01/hardware-configuration.nix @@ -4,9 +4,10 @@ { config, lib, pkgs, modulesPath, ... }: { - imports = - [ (modulesPath + "/profiles/qemu-guest.nix") - ]; + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + (modulesPath + "/profiles/qemu-guest.nix") + ]; boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "virtio_scsi" "usbhid" "sr_mod" ]; boot.initrd.kernelModules = [ ];