Files
nix-config/hosts/vmgaming/configuration.nix
2026-03-25 19:11:17 +01:00

42 lines
1.1 KiB
Nix

# Do not modify this file directly on every rebuild. It should contain host
# specific hardware/VM configuration for VMGaming (Proxmox guest).
{ config, 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 = with config.boot.kernelPackages; [ xone ];
boot.kernelParams = [ "console=ttyS0,115200" ];
services.getty.autologinUser = null;
boot.extraModprobeConfig = ''
options snd_hda_intel
'';
# Update these labels to match your VM disks if they differ.
fileSystems."/" = {
device = "/dev/disk/by-uuid/5caed946-96b8-4672-a5a7-bdaa213beb76";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/2919-0F27";
fsType = "vfat";
# options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
services.qemuGuest.enable = true;
hardware.xone.enable = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}