summaryrefslogtreecommitdiff
path: root/archetypes/profiles
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-06-17 18:37:23 -0500
committerTim Keller <tjk@tjkeller.xyz>2026-06-17 18:37:23 -0500
commit8e302e700751aa82e3c2976147f848963b37303a (patch)
tree9782b87587cccced42773ebdde31d75618e6f05f /archetypes/profiles
parent20256167c33db9c6b762a5bcf0b6678de45653d0 (diff)
downloadnixos-8e302e700751aa82e3c2976147f848963b37303a.tar.xz
nixos-8e302e700751aa82e3c2976147f848963b37303a.zip
mv nvidia packages to collection
Diffstat (limited to 'archetypes/profiles')
-rw-r--r--archetypes/profiles/cuda/default.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/archetypes/profiles/cuda/default.nix b/archetypes/profiles/cuda/default.nix
index 14de560..b57b854 100644
--- a/archetypes/profiles/cuda/default.nix
+++ b/archetypes/profiles/cuda/default.nix
@@ -11,11 +11,9 @@
# Enable cudaSupport
nixpkgs.config.cudaSupport = mkCuda true;
- # Nvidia packages
- environment.systemPackages = with pkgs; mkCuda [
- config.hardware.nvidia.package # nvidia-smi
- nvtopPackages.nvidia
- ];
+ _archetypes.collections = {
+ nvidia.enable = mkCuda true;
+ };
# Enable nvidia graphics
services.xserver.videoDrivers = mkCuda [ "nvidia" ]; # xserver.videoDrivers does not imply X