25 lines
473 B
Nix
25 lines
473 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia = {
|
|
branch = "bleeding_edge";
|
|
modesetting.enable = true;
|
|
open = true;
|
|
nvidiaSettings = true;
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
egl-wayland
|
|
lact
|
|
libva-utils
|
|
nvidia-vaapi-driver
|
|
nvtopPackages.nvidia
|
|
];
|
|
|
|
# LACT GPU control daemon
|
|
systemd.packages = with pkgs; [ lact ];
|
|
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
|
|
}
|