From 8207f8fe23d91dbf514956c567070afcf5b4cb55 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Mon, 23 Jan 2023 10:19:43 +0100 Subject: [PATCH] Enable cuda support only for blender --- flake.nix | 2 +- hm_modules/blender.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 0073f38..02db5d4 100644 --- a/flake.nix +++ b/flake.nix @@ -247,7 +247,7 @@ odin-nvidia = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = commonModules ++ odinCommonModules ++ [ - { nixpkgs.config = config // { cudaSupport = true; }; } + { nixpkgs.config = config; } ./odin/configuration-nvidia.nix ]; }; diff --git a/hm_modules/blender.nix b/hm_modules/blender.nix index 28da2b6..bf191f3 100644 --- a/hm_modules/blender.nix +++ b/hm_modules/blender.nix @@ -1 +1,3 @@ -{ pkgs, ... }: { home.packages = with pkgs; [ blender ]; } +{ pkgs, ... }: { + home.packages = with pkgs; [ (blender.override { cudaSupport = true; }) ]; +}