aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/xserver.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/xserver.nix')
-rw-r--r--nix/modules/xserver.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nix/modules/xserver.nix b/nix/modules/xserver.nix
index 52ca559..d6f7ab1 100644
--- a/nix/modules/xserver.nix
+++ b/nix/modules/xserver.nix
@@ -1,4 +1,4 @@
-{ lib, pkgs, ... }:
+{ lib, config, pkgs, ... }:
{
services.xserver = {
enable = lib.mkDefault true;
@@ -8,8 +8,8 @@
windowManager = {
i3 = {
- enable = true;
- package = pkgs.i3-gaps;
+ enable = true;
+ package = pkgs.i3-gaps;
};
};
@@ -23,6 +23,6 @@
options = "caps:escape";
};
- videoDrivers = [];
+ videoDrivers = (if config.monorepo.profiles.cuda.enable then [ "nvidia" ] else []);
};
}