From 7083deb773b9c12ef56da6a934f9f0daca95d8ba Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Wed, 29 Jan 2025 14:11:40 -0800 Subject: add affinity system --- nix/modules/xserver.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nix/modules/xserver.nix') 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 []); }; } -- cgit