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

View File

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