Files
nix-config/hosts/vmgaming/configuration.nix
2026-03-12 13:29:01 +01:00

38 lines
1.0 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;
# Update these labels to match your VM disks if they differ.
fileSystems."/" = {
device = "/dev/sda2";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/sda1";
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";
}