diff --git a/flake.nix b/flake.nix index 58b997d..bf65791 100755 --- a/flake.nix +++ b/flake.nix @@ -42,6 +42,7 @@ specialArgs = { inherit unstable; }; modules = [ ./system/susans-vm/configuration.nix + disko.nixosModules.disko ./system/susans-vm/disk.nix ]; }; diff --git a/system/susans-vm/disk.nix b/system/susans-vm/disk.nix index ca91082..87e7c2f 100755 --- a/system/susans-vm/disk.nix +++ b/system/susans-vm/disk.nix @@ -1,8 +1,8 @@ -{ config, pkgs, disko, ... }: +#{ config, pkgs, disko, ... }: { disko.devices = { disk = { - nvme0n1 = { + vda = { type = "disk"; device = "/dev/vda"; content = { diff --git a/system/susans-vm/hardware-configuration.nix b/system/susans-vm/hardware-configuration.nix index a6a7c1b..ec0c8a9 100644 --- a/system/susans-vm/hardware-configuration.nix +++ b/system/susans-vm/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ];