Move OpenGL configuration to separate fragment
This commit is contained in:
parent
5d6608294d
commit
0ea175f41b
@ -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
11
fragments/opengl.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ config, lib, pkgs, ...}:
|
||||
{
|
||||
|
||||
# Enable OpenGL
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
}
|
@ -43,13 +43,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
# Enable OpenGL
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
};
|
||||
|
||||
services.xserver.videoDrivers = ["amdgpu"];
|
||||
|
||||
services.syncthing = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user