Move OpenGL configuration to separate fragment

This commit is contained in:
NullBite 2023-12-29 04:22:01 -05:00
parent 5d6608294d
commit 0ea175f41b
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 12 additions and 7 deletions

View File

@ -18,6 +18,7 @@
./hosts/slab/nvidia-optimus.nix
./roles/remote.nix
./roles/desktop.nix
./fragments/opengl.nix
];
};
nullbox = lib.nixosSystem {

11
fragments/opengl.nix Normal file
View File

@ -0,0 +1,11 @@
{ config, lib, pkgs, ...}:
{
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
}

View File

@ -43,13 +43,6 @@
};
};
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["amdgpu"];
services.syncthing = {