mirror of
https://github.com/danbulant/dotfiles
synced 2026-05-24 12:35:34 +00:00
41 lines
858 B
Nix
41 lines
858 B
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
services.hardware.openrgb.enable = true;
|
|
boot = {
|
|
kernelParams = [
|
|
# attempt to fix nvidia perf
|
|
"nvidia_drm.fbdev=1"
|
|
"nvidia_drm.modeset=1"
|
|
"module_blacklist=i915"
|
|
"delayacct"
|
|
"initcall_blacklist=sysfb_init"
|
|
#"quiet"
|
|
#"splash"
|
|
"boot.shell_on_fail"
|
|
"loglevel=3"
|
|
"rd.systemd.show_status=false"
|
|
"rd.udev.log_level=3"
|
|
"udev.log_priority=3"
|
|
];
|
|
};
|
|
hardware.graphics = {
|
|
enable = true;
|
|
# package = unstable-pkgs.mesa.drivers;
|
|
# Steam support
|
|
enable32Bit = true;
|
|
# package32 = unstable-pkgs.pkgsi686Linux.mesa.drivers;
|
|
extraPackages = with pkgs; [
|
|
nvidia-vaapi-driver
|
|
];
|
|
};
|
|
hardware.nvidia = {
|
|
open = false;
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
nvidiaSettings = true;
|
|
};
|
|
}
|