39 lines
1.0 KiB
Nix
39 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,
|
|
...
|
|
}: {
|
|
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;
|
|
|
|
hardware.xone.enable = true;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
}
|