mirror of
https://codeberg.org/ultra/nixos-dotfiles.git
synced 2024-11-05 08:43:08 +02:00
19 lines
450 B
Nix
19 lines
450 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;
|
||
|
};
|
||
|
};
|
||
|
}
|