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 = imports =
[ [
inputs.hardware.nixosModules.common-cpu-intel inputs.hardware.nixosModules.common-cpu-intel-cpu-only
inputs.hardware.nixosModules.common-gpu-nvidia inputs.hardware.nixosModules.common-gpu-nvidia-nonprime
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
@ -21,33 +21,32 @@
efi.canTouchEfiVariables = true; efi.canTouchEfiVariables = true;
}; };
# nvidia bullshit. Wow # nvidia
# i really, *really* wish i had an AMD card rn services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = { hardware.nvidia = {
# this will cause problems down the line, but man i need that explicit sync ASAP
package = config.boot.kernelPackages.nvidiaPackages.beta; package = config.boot.kernelPackages.nvidiaPackages.beta;
modesetting.enable = true; 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 = { # sleep/suspend
offload = { # broken when waking, but it works better than having it off
enable = true; powerManagement.enable = true;
};
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
}; };
# VA-API
hardware.opengl = { hardware.opengl = {
enable = true; extraPackages = with pkgs; [
driSupport = true; nvidia-vaapi-driver
driSupport32Bit = true; ];
};
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."/" = fileSystems."/" =

View file

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