mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
21 lines
472 B
Nix
21 lines
472 B
Nix
_: {
|
|
hardware.graphics = {
|
|
enable = true;
|
|
};
|
|
services.xserver.videoDrivers = ["nvidia"];
|
|
hardware.nvidia = {
|
|
open = true;
|
|
modesetting.enable = true;
|
|
powerManagement.enable = true;
|
|
nvidiaSettings = true;
|
|
};
|
|
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;
|
|
};
|
|
}
|