mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-14 11:53:07 +02:00
23 lines
578 B
Nix
23 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 ];
|
|
};
|
|
}
|