summaryrefslogtreecommitdiff
path: root/systems/glados/gpu.nix
diff options
context:
space:
mode:
Diffstat (limited to 'systems/glados/gpu.nix')
-rw-r--r--systems/glados/gpu.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/systems/glados/gpu.nix b/systems/glados/gpu.nix
new file mode 100644
index 0000000..d40a5ff
--- /dev/null
+++ b/systems/glados/gpu.nix
@@ -0,0 +1,31 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: {
+ services.xserver.videoDrivers = ["nvidia"];
+
+ hardware = {
+ opengl.extraPackages = [pkgs.vaapiVdpau];
+ nvidia = {
+ package = config.boot.kernelPackages.nvidiaPackages.latest;
+ modesetting.enable = true;
+ };
+ };
+
+ specialisation = {
+ nvk.configuration = {
+ boot = {
+ kernelParams = ["nouveau.config=NvGspRm=1"];
+ initrd.kernelModules = ["nouveau"];
+ };
+
+ hardware.opengl.extraPackages = lib.mkForce [];
+
+ services.xserver.videoDrivers = lib.mkForce ["modesetting"];
+
+ system.nixos.tags = ["with-nvk"];
+ };
+ };
+}