From 30558b5b98c362e4daabb9223286a2595191be4e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 3 Aug 2024 14:04:03 -0700 Subject: add a linux VM as a new host The linux VM runs with UTM, and it has a very basic configuration for now. --- nix/hosts/vm/hardware.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 nix/hosts/vm/hardware.nix (limited to 'nix/hosts/vm/hardware.nix') diff --git a/nix/hosts/vm/hardware.nix b/nix/hosts/vm/hardware.nix new file mode 100644 index 0000000..89c3d8b --- /dev/null +++ b/nix/hosts/vm/hardware.nix @@ -0,0 +1,14 @@ +{ modulesPath, ... }: +{ + imports = [ (modulesPath + "/profiles/qemu-guest.nix") ]; + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + device = "nodev"; + }; + fileSystems."/boot" = { device = "/dev/disk/by-uuid/E783-E9AE"; fsType = "vfat"; }; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" ]; + boot.initrd.kernelModules = [ "nvme" ]; + fileSystems."/" = { device = "/dev/vda2"; fsType = "ext4"; }; + swapDevices = [{ device = "/dev/vda3"; }]; +} -- cgit v1.2.3