mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
21 lines
469 B
Nix
21 lines
469 B
Nix
{config, ...}: {
|
|
hardware = {
|
|
graphics = {
|
|
enable = true;
|
|
};
|
|
nvidia = {
|
|
open = true;
|
|
modesetting.enable = true;
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
};
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
|
|
fireproof.home-manager.programs.niri.settings = {
|
|
environment = {
|
|
"LIBVA_DRIVER_NAME" = "nvidia";
|
|
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
|
"NVD_BACKEND" = "direct";
|
|
};
|
|
};
|
|
}
|