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

@@ -24,6 +24,8 @@
};
boot.loader.efi.canTouchEfiVariables = false;
boot.blacklistedKernelModules = [ "nouveau" ];
services.spice-vdagentd.enable = true;
services.qemuGuest.enable = true;
@@ -47,16 +49,20 @@
# NVIDIA passthrough guest defaults.
# If you pass through an AMD GPU instead, replace with:
# services.xserver.videoDrivers = [ "amdgpu" ];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = false;
#powerManagement.enable = false;
open = false;
nvidiaSettings = true;
#nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
services.xserver.deviceSection = ''
Option "AllowEmptyInitialConfiguration"
'';
powerManagement.cpuFreqGovernor = lib.mkDefault "performance";
environment.systemPackages = with pkgs; [
@@ -68,4 +74,12 @@
custom.gaming.enable = true;
custom.gaming.enableXpadneo = false;
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = true;
PermitRootLogin = "no";
};
};
}