summary refs log tree commit diff
path: root/host/Arc/optional/hardware-specific/nvidia.nix
diff options
context:
space:
mode:
Diffstat (limited to 'host/Arc/optional/hardware-specific/nvidia.nix')
-rw-r--r--host/Arc/optional/hardware-specific/nvidia.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/host/Arc/optional/hardware-specific/nvidia.nix b/host/Arc/optional/hardware-specific/nvidia.nix
new file mode 100644

index 0000000..1f98541 --- /dev/null +++ b/host/Arc/optional/hardware-specific/nvidia.nix
@@ -0,0 +1,40 @@ +{ + config, + pkgs, + lib, + nhekoSrc, + mtxclientSrc, + ... +}: + +{ + imports = [ + + ]; + + services = { + xserver = { + #videoDrivers = [ "nvidia" ]; + #windowManager.i3.extraSessionCommands = '' + # todo: restore + #''; + }; + picom.backend = "glx"; + }; + + hardware = { + graphics = { + enable = true; + }; + + nvidia = { + modesetting.enable = true; + powerManagement.enable = false; + powerManagement.finegrained = false; + open = true; + nvidiaSettings = true; + nvidiaPersistenced = true; + package = config.boot.kernelPackages.nvidiaPackages.stable; + }; + }; +}