summaryrefslogtreecommitdiff
path: root/systems/glados/gpu.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-03-11 03:21:22 -0400
committerseth <[email protected]>2024-03-11 03:24:24 -0400
commit073025036509f0c5982b2e39547e7d08b640a27b (patch)
tree7293920a6d65f7103df462f45d7a0907b55f997c /systems/glados/gpu.nix
parentd462cd5e3c42e618c61e284c534e3652d186ef1a (diff)
glados: make nvk specialisation
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"];
+ };
+ };
+}