diff options
author | Jan Malakhovski <oxij@oxij.org> | 2018-04-25 07:12:04 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2018-06-13 16:25:10 +0000 |
commit | b01ccbb89918b0c0ab2347405a4a101544045c86 (patch) | |
tree | 247bc4cd5bcf8fa8246c82f899e12d895dced2e0 | |
parent | 2a5688574c5c5d9797f4b010325f799910b42af6 (diff) | |
download | nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.gz nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.bz2 nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.lz nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.xz nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.tar.zst nixlib-b01ccbb89918b0c0ab2347405a4a101544045c86.zip |
nixos: xserver: add related packages
-rw-r--r-- | nixos/modules/services/x11/xserver.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/xserver.nix b/nixos/modules/services/x11/xserver.nix index 1404231f837e..3048cd02683f 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 |