summary refs log tree commit diff
path: root/nixos/modules/services/x11/xserver.nix
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2018-04-25 07:12:04 +0000
committerJan Malakhovski <oxij@oxij.org>2018-06-13 16:25:10 +0000
commitb01ccbb89918b0c0ab2347405a4a101544045c86 (patch)
tree247bc4cd5bcf8fa8246c82f899e12d895dced2e0 /nixos/modules/services/x11/xserver.nix
parent2a5688574c5c5d9797f4b010325f799910b42af6 (diff)
downloadnixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.gz
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.bz2
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.lz
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.xz
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.zst
nixpkgs-b01ccbb89918b0c0ab2347405a4a101544045c86.zip
nixos: xserver: add related packages
Diffstat (limited to 'nixos/modules/services/x11/xserver.nix')
-rw-r--r--nixos/modules/services/x11/xserver.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix
index 1404231f837..3048cd02683 100644
--- a/nixos/modules/services/x11/xserver.nix
+++ b/nixos/modules/services/x11/xserver.nix
@@ -244,6 +244,13 @@ in
           "ati_unfree" "amdgpu" "amdgpu-pro"
           "nv" "nvidia" "nvidiaLegacy340" "nvidiaLegacy304"
         ];
+        # TODO(@oxij): think how to easily add the rest, like those nvidia things
+        relatedPackages = concatLists
+          (mapAttrsToList (n: v:
+            optional (hasPrefix "xf86video" n) {
+              path  = [ "xorg" n ];
+              title = removePrefix "xf86video" n;
+            }) pkgs.xorg);
         description = ''
           The names of the video drivers the configuration
           supports. They will be tried in order until one that