adjust some hardware stuff

This commit is contained in:
Reid 2024-04-04 20:25:34 -07:00
parent 4807d2de3c
commit 4b63714ce9
2 changed files with 24 additions and 24 deletions

View file

@ -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."/" =

View file

@ -22,4 +22,5 @@ each host should have these files:
|--------------------------|---------|---------|
| chinese DP->HDMI adapter | 4k@60hz | 4k@30hz |
- bitwarden
- games on steam, gamemode, gamescope
- games on steam, gamemode, gamescope
- stop using an nvidia gpu (lol)