add vm proxmox

This commit is contained in:
Amaury JOLY
2026-03-10 22:16:46 +01:00
parent d6a66c16b8
commit 8551f28c1a
4 changed files with 134 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# Do not modify this file directly on every rebuild. It should contain host
# specific hardware/VM configuration for VMGaming (Proxmox guest).
{ lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
# Update these labels to match your VM disks if they differ.
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
services.qemuGuest.enable = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}