aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/xserver.nix
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2025-01-29 14:11:40 -0800
committerPreston Pan <preston@nullring.xyz>2025-01-29 14:11:40 -0800
commit7083deb773b9c12ef56da6a934f9f0daca95d8ba (patch)
tree5c3673c34cc7fb71c8a7e87a22081890ab59f538 /nix/modules/xserver.nix
parent2a4a4e2c42257bb25789ec3be6bc5a88f0eab7b5 (diff)
add affinity system
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 []);
};
}