2023-06-11 23:09:59 +02:00
|
|
|
{
|
2024-03-02 22:05:30 +01:00
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit
|
|
|
|
(lib)
|
|
|
|
getExe
|
|
|
|
;
|
|
|
|
in {
|
2023-06-11 23:09:59 +02:00
|
|
|
imports = [
|
|
|
|
../../common/xserver.nix
|
|
|
|
];
|
|
|
|
|
2024-03-02 22:05:30 +01:00
|
|
|
services.xserver.videoDrivers = ["nvidia"];
|
2023-06-11 23:09:59 +02:00
|
|
|
|
|
|
|
services.xserver.libinput = {
|
|
|
|
touchpad.clickMethod = "clickfinger";
|
|
|
|
touchpad.disableWhileTyping = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.nvidia.prime = {
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
nvidiaBusId = "PCI:1:0:0";
|
2023-07-27 21:02:56 +02:00
|
|
|
offload.enableOffloadCmd = true;
|
2023-06-11 23:09:59 +02:00
|
|
|
};
|
|
|
|
}
|