nixos-dotfiles/hosts/titan/hardware/nvidia.nix
Alex Stan 6e5c998c2e some stuff
Signed-off-by: Alex Stan <90788596+Ultra980@users.noreply.github.com>
2023-09-19 17:46:21 +03:00

23 lines
No EOL
576 B
Nix

inputs: { config, pkgs, lib, ... }: {
# NVIDIA config
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
powerManagement.enable = true;
open = true;
nvidiaSettings = true;
};
};
boot = {
initrd.kernelModules = [ "nvidia" ];
extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
};
}