From fef4205f8b2d748ea99b0e683e27ef0fe7556ad6 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 21 Mar 2025 11:06:34 +0000 Subject: [PATCH] Added cuda support --- flake.nix | 2 ++ nixos/worklaptop/configuration.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 8133433..e8c28cf 100644 --- a/flake.nix +++ b/flake.nix @@ -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; diff --git a/nixos/worklaptop/configuration.nix b/nixos/worklaptop/configuration.nix index 865eabc..85c084b 100644 --- a/nixos/worklaptop/configuration.nix +++ b/nixos/worklaptop/configuration.nix @@ -14,6 +14,7 @@ # Allow unfree packages nixpkgs.config.allowUnfree = true; + nixpkgs.config.cudaSupport = true; hardware.nvidia = { # Modesetting is required.