Add garbage collection for better disk management

This commit is contained in:
2025-09-24 19:04:35 +02:00
parent c7016ba717
commit 4aca1f47e3
3 changed files with 39 additions and 44 deletions

View File

@@ -31,12 +31,14 @@ in {
};
# Apply CUDA-specific settings if enabled
nixpkgs.config.cudaSupport = config.enableCuda;
# Dont do all as this has ridiculous high build times
#nixpkgs.config.cudaSupport = config.enableCuda;
hardware.enableAllFirmware = config.enableCuda;
environment.systemPackages = (if config.enableCuda then
[ (pkgs.blender.override { cudaSupport = true; }) ]
else
environment.systemPackages = (if config.enableCuda then [
(pkgs.blender.override { cudaSupport = true; })
(pkgs.ollama.override { acceleration = "cuda"; })
] else
[ ]);
};
}