From 0ea175f41bf69b4e852544f07e095c55732abfb7 Mon Sep 17 00:00:00 2001 From: NullBite Date: Fri, 29 Dec 2023 04:22:01 -0500 Subject: [PATCH] Move OpenGL configuration to separate fragment --- flake.nix | 1 + fragments/opengl.nix | 11 +++++++++++ hosts/slab/configuration.nix | 7 ------- 3 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 fragments/opengl.nix diff --git a/flake.nix b/flake.nix index 2ddbd1b..cddca88 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ ./hosts/slab/nvidia-optimus.nix ./roles/remote.nix ./roles/desktop.nix + ./fragments/opengl.nix ]; }; nullbox = lib.nixosSystem { diff --git a/fragments/opengl.nix b/fragments/opengl.nix new file mode 100644 index 0000000..79ee5d2 --- /dev/null +++ b/fragments/opengl.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ...}: +{ + + # Enable OpenGL + hardware.opengl = { + enable = true; + driSupport = true; + driSupport32Bit = true; + }; + +} diff --git a/hosts/slab/configuration.nix b/hosts/slab/configuration.nix index b5c13bf..189c571 100644 --- a/hosts/slab/configuration.nix +++ b/hosts/slab/configuration.nix @@ -43,13 +43,6 @@ }; }; - # Enable OpenGL - hardware.opengl = { - enable = true; - driSupport = true; - driSupport32Bit = true; - }; - services.xserver.videoDrivers = ["amdgpu"]; services.syncthing = {