diff options
Diffstat (limited to 'nix')
-rw-r--r-- | nix/modules/home/default.nix | 1 | ||||
-rw-r--r-- | nix/modules/nvidia.nix | 2 | ||||
-rw-r--r-- | nix/systems/affinity/default.nix | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/nix/modules/home/default.nix b/nix/modules/home/default.nix index 1f87d57..a59a536 100644 --- a/nix/modules/home/default.nix +++ b/nix/modules/home/default.nix @@ -40,6 +40,7 @@ art.enable = lib.mkEnableOption "Enables various art programs"; music.enable = lib.mkEnableOption "Enables mpd"; workstation.enable = lib.mkEnableOption "Enables workstation packages (music production and others)"; + cuda.enable = lib.mkEnableOption "Enables CUDA user package builds"; hyprland = { enable = lib.mkEnableOption "Enables hyprland"; diff --git a/nix/modules/nvidia.nix b/nix/modules/nvidia.nix index b59035c..04d5545 100644 --- a/nix/modules/nvidia.nix +++ b/nix/modules/nvidia.nix @@ -1,7 +1,7 @@ { config, lib, pkgs, ... }: { hardware = { - opengl.extraPackages = with pkgs; [ + graphics.extraPackages = with pkgs; [ vaapiVdpau libvdpau-va-gl nvidia-vaapi-driver diff --git a/nix/systems/affinity/default.nix b/nix/systems/affinity/default.nix index 703103d..a1871cc 100644 --- a/nix/systems/affinity/default.nix +++ b/nix/systems/affinity/default.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, lib, home-manager, ... }: { imports = [ ../../modules/default.nix @@ -10,4 +10,5 @@ }; vars.hostName = "affinity"; }; + config.home-manager.users."${config.monorepo.vars.userName}".monorepo.profiles.cuda.enable = true; } |