diff --git a/hosts/goopnet-interface/hardware.nix b/hosts/goopnet-interface/hardware.nix index 4b949c5..d17962e 100755 --- a/hosts/goopnet-interface/hardware.nix +++ b/hosts/goopnet-interface/hardware.nix @@ -3,8 +3,8 @@ { imports = [ - inputs.hardware.nixosModules.common-cpu-intel - inputs.hardware.nixosModules.common-gpu-nvidia + inputs.hardware.nixosModules.common-cpu-intel-cpu-only + inputs.hardware.nixosModules.common-gpu-nvidia-nonprime (modulesPath + "/installer/scan/not-detected.nix") ]; @@ -21,33 +21,32 @@ efi.canTouchEfiVariables = true; }; - # nvidia bullshit. Wow - # i really, *really* wish i had an AMD card rn + # nvidia + services.xserver.videoDrivers = [ "nvidia" ]; + hardware.nvidia = { - # this will cause problems down the line, but man i need that explicit sync ASAP package = config.boot.kernelPackages.nvidiaPackages.beta; + modesetting.enable = true; - # powermanagement breaks suspend i guess?? - # - # im about to suspend lets see if turning it off fixed it - # - # it did not !! this time our computer actually shut off fully but.. - # hyprland turned into an eldrich horror then crashed. Lets just not for now! - # powerManagement.enable = false; - prime = { - offload = { - enable = true; - }; - - intelBusId = "PCI:0:2:0"; - nvidiaBusId = "PCI:1:0:0"; - }; + # sleep/suspend + # broken when waking, but it works better than having it off + powerManagement.enable = true; }; + + # VA-API hardware.opengl = { - enable = true; - driSupport = true; - driSupport32Bit = true; + extraPackages = with pkgs; [ + nvidia-vaapi-driver + ]; + }; + + environment.variables = { + LIBVA_DRIVER_NAME= "nvidia"; + VDPAU_DRIVER = "nvidia"; + # TODO: remove this once nvidia gets their shit together + # https://forums.developer.nvidia.com/t/cueglstreamproducerconnect-returns-error-801-on-525-53-driver/233610/20 + NVD_BACKEND = "direct"; }; fileSystems."/" = diff --git a/readme.md b/readme.md index 5f61cd6..dd38037 100755 --- a/readme.md +++ b/readme.md @@ -22,4 +22,5 @@ each host should have these files: |--------------------------|---------|---------| | chinese DP->HDMI adapter | 4k@60hz | 4k@30hz | - bitwarden - - games on steam, gamemode, gamescope \ No newline at end of file + - games on steam, gamemode, gamescope + - stop using an nvidia gpu (lol) \ No newline at end of file