mirror of
https://github.com/Ascyii/nixos.git
synced 2026-01-01 06:44:26 -05:00
Minimal with flake update
This commit is contained in:
@@ -6,10 +6,6 @@ in {
|
||||
enableCuda = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Enable CUDA support for Blender and other packages.
|
||||
Warning: This can cause very long build times.
|
||||
'';
|
||||
};
|
||||
nvidiaOpen = mkOption {
|
||||
type = types.bool;
|
||||
@@ -29,16 +25,5 @@ in {
|
||||
nvidiaSettings = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||
};
|
||||
|
||||
# Apply CUDA-specific settings if enabled
|
||||
nixpkgs.config.cudaSupport = config.enableCuda;
|
||||
hardware.enableAllFirmware = true;
|
||||
|
||||
environment.systemPackages = (if config.enableCuda then
|
||||
[
|
||||
(pkgs.blender.override { cudaSupport = true; })
|
||||
]
|
||||
else
|
||||
[ ]);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user