summaryrefslogtreecommitdiff
path: root/hosts/dspace
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-02-03 12:58:47 +0530
committersinanmohd <sinan@sinanmohd.com>2024-02-03 12:58:47 +0530
commitd5c0a5ff4dc3936443d6bd410c6e5f71c24f3be2 (patch)
treeed5fe0b81d92faed95bbf4bfd323b94a81d42220 /hosts/dspace
parent4e20d555b2c0019cae4ec6adff89177510f2770f (diff)
boot: move bootloader implementation to hardware-configuration
Diffstat (limited to 'hosts/dspace')
-rw-r--r--hosts/dspace/hardware-configuration.nix23
1 files changed, 15 insertions, 8 deletions
diff --git a/hosts/dspace/hardware-configuration.nix b/hosts/dspace/hardware-configuration.nix
index c355e8b..aaad3b7 100644
--- a/hosts/dspace/hardware-configuration.nix
+++ b/hosts/dspace/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 = {
"/" = {