From d5c0a5ff4dc3936443d6bd410c6e5f71c24f3be2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 3 Feb 2024 12:58:47 +0530 Subject: boot: move bootloader implementation to hardware-configuration --- hosts/fscusat/hardware-configuration.nix | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'hosts/fscusat/hardware-configuration.nix') diff --git a/hosts/fscusat/hardware-configuration.nix b/hosts/fscusat/hardware-configuration.nix index 3913e1e..8bb54ed 100644 --- a/hosts/fscusat/hardware-configuration.nix +++ b/hosts/fscusat/hardware-configuration.nix @@ -3,14 +3,21 @@ { imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; - boot.initrd.availableKernelModules = [ - "ata_piix" - "uhci_hcd" - "virtio_pci" - "virtio_scsi" - "sd_mod" - "sr_mod" - ]; + boot = { + loader = { + systemd-boot.enable = true; + efi.canTouchEfiVariables = true; + }; + + initrd.availableKernelModules = [ + "ata_piix" + "uhci_hcd" + "virtio_pci" + "virtio_scsi" + "sd_mod" + "sr_mod" + ]; + }; fileSystems = { "/" = { -- cgit v1.2.3