summary refs log tree commit diff
path: root/nixos/modules/services/ttys
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-01-15 08:08:45 -0500
committerShea Levy <shea@shealevy.com>2014-01-15 08:17:19 -0500
commit852c270035f2766354a52fbfd258e2562d77bf17 (patch)
tree2f1e607b391302afa367ec15b894acaad1796fe0 /nixos/modules/services/ttys
parent48daf624c5647b344e11a36f9a95e5d8134dd9eb (diff)
downloadnixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar.gz
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar.bz2
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar.lz
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar.xz
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.tar.zst
nixlib-852c270035f2766354a52fbfd258e2562d77bf17.zip
nixos: Split mesa setup from xserver.nix
With kmscon, it is now possible to have a system without X that still
needs the mesa setup in /run/opengl-driver

Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'nixos/modules/services/ttys')
-rw-r--r--nixos/modules/services/ttys/kmscon.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/ttys/kmscon.nix b/nixos/modules/services/ttys/kmscon.nix
index 97fe7a1ca1b8..c1e98e8bb002 100644
--- a/nixos/modules/services/ttys/kmscon.nix
+++ b/nixos/modules/services/ttys/kmscon.nix
@@ -60,5 +60,7 @@ in {
       drm
       hwaccel
     '';
+
+    services.mesa.enable = mkIf cfg.hwRender true;
   };
 }