Compare commits

..

2 Commits

Author SHA1 Message Date
fc3de21af7
Enable nvidia nix-required-mounts
This allows running derivations which depend on cuda runtime without
breaking the sandbox. We only need to add `requiredSystemFeatures = [ "cuda" ];`
to the derivation.
2025-07-18 11:35:41 +02:00
cfdada0008
Move shared nvidia settings to a separate module 2025-07-18 11:35:32 +02:00

View File

@ -1,7 +1,7 @@
{ lib, config, ... }:
{
# Configure Nvidia driver to use with CUDA
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.production;
hardware.nvidia.package = lib.mkDefault config.boot.kernelPackages.nvidiaPackages.production;
hardware.nvidia.open = lib.mkDefault (builtins.abort "hardware.nvidia.open not set");
hardware.graphics.enable = true;
nixpkgs.config.nvidia.acceptLicense = true;