add hardware stuff and switching kaladin to an RX 6700

This commit is contained in:
Chris Cochrun 2023-04-07 15:08:24 -05:00
parent b1ca96c9d7
commit 5ecb11d825
3 changed files with 31 additions and 12 deletions

View file

@ -17,7 +17,7 @@
networking.interfaces.wlp7s0.useDHCP = true;
# NVIDIA
services.xserver.videoDrivers = [ "nvidia" ];
# services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
opengl = {
enable = true;
@ -26,18 +26,18 @@
libvdpau-va-gl
];
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
modesetting.enable = true;
powerManagement.enable = true;
};
# nvidia = {
# package = config.boot.kernelPackages.nvidiaPackages.beta;
# modesetting.enable = true;
# powerManagement.enable = true;
# };
};
services.xserver.screenSection = ''
Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
Option "AllowIndirectGLXProtocol" "off"
Option "TripleBuffer" "on"
'';
# services.xserver.screenSection = ''
# Option "metamodes" "nvidia-auto-select +0+0 {ForceFullCompositionPipeline=On}"
# Option "AllowIndirectGLXProtocol" "off"
# Option "TripleBuffer" "on"
# '';
# Define a user account. Don't forget to set a password with passwd.
users.users.chris = {