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