base: use *only* nvidia driver if GPU is nvidia
This commit is contained in:
parent
be9268236a
commit
ef59fd800e
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue