From 7881651fba877dd9a79c4c32422cd7305f0306b5 Mon Sep 17 00:00:00 2001 From: ene Date: Sun, 19 Mar 2023 17:58:43 +0100 Subject: Fix(system/hardware): Use actually needed modules and UUID The old values did work, but these should just make things a bit clearer. --- hosts/server1/configuration.nix | 2 +- system/hardware/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/server1/configuration.nix b/hosts/server1/configuration.nix index 694b6b4..ad3d8a3 100644 --- a/hosts/server1/configuration.nix +++ b/hosts/server1/configuration.nix @@ -10,7 +10,7 @@ networking.hostName = "server1"; networking.domain = "vhack.eu"; - system.fileSystemLayouts.mainDisk = "/dev/vda3"; + system.fileSystemLayouts.mainDisk = "/dev/disk/by-uuid/7d960eb9-9334-4aef-9f7c-9a908a91a6db"; system.stateVersion = "22.11"; } diff --git a/system/hardware/default.nix b/system/hardware/default.nix index c4c7dc9..9fabafe 100644 --- a/system/hardware/default.nix +++ b/system/hardware/default.nix @@ -4,6 +4,6 @@ (modulesPath + "/profiles/headless.nix") ]; boot.loader.grub.device = "/dev/vda"; - boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"]; - boot.initrd.kernelModules = ["nvme" "btrfs"]; + boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"]; + boot.initrd.kernelModules = []; } -- cgit 1.4.1