dotfiles/nixos/systems/omen/xserver.nix
Magic_RB 6a4cbd9e81
Add nvidia-offload command to omen
Signed-off-by: Magic_RB <magic_rb@redalder.org>
2023-07-27 21:02:56 +02:00

24 lines
408 B
Nix

{ pkgs, lib, ... }:
let
inherit (lib)
getExe;
in
{
imports = [
../../common/xserver.nix
];
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.libinput = {
touchpad.clickMethod = "clickfinger";
touchpad.disableWhileTyping = true;
};
hardware.nvidia.prime = {
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
offload.enableOffloadCmd = true;
};
}