mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
30 lines
703 B
Nix
30 lines
703 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.wayland.windowManager.hyprland.settings = {
|
|
env = [
|
|
"LIBVA_DRIVER_NAME,nvidia"
|
|
"__GLX_VENDOR_LIBRARY_NAME,nvidia"
|
|
"NVD_BACKEND,direct"
|
|
];
|
|
|
|
cursor.no_hardware_cursors = true;
|
|
};
|
|
fireproof.home-manager.programs.niri.settings = {
|
|
environment = {
|
|
"LIBVA_DRIVER_NAME" = "nvidia";
|
|
"__GLX_VENDOR_LIBRARY_NAME" = "nvidia";
|
|
"NVD_BACKEND" = "direct";
|
|
};
|
|
};
|
|
}
|