update vmgpupassthrought

This commit is contained in:
Amaury
2026-03-12 13:29:01 +01:00
parent 8551f28c1a
commit c7262c7c68
5 changed files with 36 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
# Do not modify this file directly on every rebuild. It should contain host
# specific hardware/VM configuration for VMGaming (Proxmox guest).
{ lib, modulesPath, ... }:
{ config, lib, modulesPath, ... }:
{
imports = [
@@ -10,18 +10,20 @@
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
boot.extraModulePackages = with config.boot.kernelPackages; [ xone ];
boot.kernelParams = [ "console=ttyS0,115200" ];
services.getty.autologinUser = null;
# Update these labels to match your VM disks if they differ.
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
device = "/dev/sda2";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
device = "/dev/sda1";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
# options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
@@ -29,5 +31,7 @@
networking.useDHCP = lib.mkDefault true;
services.qemuGuest.enable = true;
hardware.xone.enable = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}