GPU Passthrough for plex

This commit is contained in:
Random936
2024-09-17 22:56:37 -07:00
parent 50d2054bf2
commit 8cefe48157
4 changed files with 32 additions and 15 deletions

View File

@@ -8,20 +8,26 @@
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ahci" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/3f87972b-cf61-4efd-883c-b9f794775232";
fsType = "ext4";
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/d761e265-99eb-4dd6-a92d-40ba56f962ec";
fsType = "ext4";
};
fileSystems."/mnt/storage" = {
device = "/dev/disk/by-uuid/b579c911-e74c-4f03-b918-a4e5a6b764ab";
fsType = "ext4";
};
fileSystems."/mnt/storage" =
{ device = "/dev/disk/by-uuid/b579c911-e74c-4f03-b918-a4e5a6b764ab";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/3B58-9662";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
swapDevices = [ ];
@@ -30,7 +36,7 @@
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
# networking.interfaces.enp6s18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}