diff options
author | Preston Pan <preston@nullring.xyz> | 2025-01-29 14:21:26 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2025-01-29 14:21:26 -0800 |
commit | a142b3f93080d5f4b97a383c95e5bb59d3065cf1 (patch) | |
tree | ca79b0ad073dbc86c9b56a558d7406e15f5e08bd /nix/modules | |
parent | 7083deb773b9c12ef56da6a934f9f0daca95d8ba (diff) |
add user cuda option
Diffstat (limited to 'nix/modules')
-rw-r--r-- | nix/modules/home/default.nix | 1 | ||||
-rw-r--r-- | nix/modules/nvidia.nix | 2 |
2 files changed, 2 insertions, 1 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 |