base: use *only* nvidia driver if GPU is nvidia

This commit is contained in:
Antoine Martin 2022-01-11 16:37:28 +01:00
parent be9268236a
commit ef59fd800e

View file

@ -12,8 +12,8 @@
xserver = {
enable = true;
# NOTE: could use `mkOptionDefault` but this feels more explicit
videoDrivers = options.services.xserver.videoDrivers.default
++ lib.optional config.my.gui.isNvidia "nvidia";
videoDrivers = if config.my.gui.isNvidia then [ "nvidia" ]
else options.services.xserver.videoDrivers.default;
windowManager.i3.enable = true;
layout = "fr";
xkbVariant = "us";