nixos-dotfiles/hosts/titan/hardware/nvidia.nix
Alex Stan eb5f9fc1c7 mentally draining stuff
Signed-off-by: Alex Stan <alex.stan.2010@proton.me>
2024-02-28 23:20:48 +02:00

24 lines
578 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.latest;
modesetting.enable = true;
powerManagement.enable = true;
#open = true;
nvidiaSettings = true;
};
};
boot = {
initrd.kernelModules = [ "nvidia" ];
extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
};
}