2023-04-22 17:58:40 +02:00
|
|
|
{ pkgs, config, ... }: {
|
2023-04-22 17:38:18 +02:00
|
|
|
hardware.enableAllFirmware = true;
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
|
|
|
services.hardware.bolt.enable = true;
|
|
|
|
|
2023-04-27 14:36:43 +02:00
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware.nvidia = {
|
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
|
|
|
|
|
|
|
# Open drivers cause gdm to crash
|
|
|
|
# open = true;
|
|
|
|
|
|
|
|
# nvidia-drm.modeset=1
|
|
|
|
modesetting.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# Hardware acceleration
|
|
|
|
hardware.opengl = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# Vulkan
|
|
|
|
driSupport = true;
|
|
|
|
};
|
2023-04-22 17:38:18 +02:00
|
|
|
|
|
|
|
services.udev.packages = with pkgs; [ wooting-udev-rules ];
|
|
|
|
|
|
|
|
# SSD Trim
|
|
|
|
services.fstrim.enable = true;
|
|
|
|
}
|