Added cuda support

This commit is contained in:
2025-03-21 11:06:34 +00:00
parent d6f342a421
commit fef4205f8b
2 changed files with 3 additions and 0 deletions

View File

@@ -83,6 +83,7 @@
system = "x86_64-linux";
config = {
allowUnfree = true;
cudaSupport = true;
# Workaround for https://github.com/nix-community/home-manager/issues/2942
allowUnfreePredicate = _: true;
};
@@ -92,6 +93,7 @@
unstablePkgs = import nixpkgs-unstable {
# We also need to do the same for unstable
system = "x86_64-linux";
cudaSupport = true;
config = {
allowUnfree = true;
allowUnfreePredicate = _: true;

View File

@@ -14,6 +14,7 @@
# Allow unfree packages
nixpkgs.config.allowUnfree = true;
nixpkgs.config.cudaSupport = true;
hardware.nvidia = {
# Modesetting is required.