From bd2bca99b5e27f3dc7b657f139947e51458ee8cb Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 21 Dec 2024 20:30:43 +0100 Subject: fix(modules/disko): Remove deprecated legacy type and migrate to `by-name` --- hosts/server1/hardware.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hosts/server1/hardware.nix') diff --git a/hosts/server1/hardware.nix b/hosts/server1/hardware.nix index 6086362..9abc64c 100644 --- a/hosts/server1/hardware.nix +++ b/hosts/server1/hardware.nix @@ -3,8 +3,12 @@ (modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/profiles/headless.nix") ]; - # FIXME: The name of the grub device depends on the disko settings - boot.loader.grub.device = "/dev/vda"; + + vhack.disko = { + enable = true; + # FIXME: Find a better way to specify the disk + disk = "/dev/vda"; + }; boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"]; boot.initrd.kernelModules = []; } -- cgit 1.4.1