diff --git a/modules/base/nixpkgs.nix b/modules/base/nixpkgs.nix index 1756b7b1..0d17016f 100644 --- a/modules/base/nixpkgs.nix +++ b/modules/base/nixpkgs.nix @@ -10,7 +10,7 @@ # use pkgs.pkgsCuda # this list also does not include actually useful sets like pkgsi686Linux # however this can also break some packages from building - allowVariants = false; + allowVariants = true; # If a package is broken, I don't want it allowBroken = false; diff --git a/modules/nixos/services/immich.nix b/modules/nixos/services/immich.nix index f858c917..9caa107d 100644 --- a/modules/nixos/services/immich.nix +++ b/modules/nixos/services/immich.nix @@ -54,21 +54,7 @@ in # it kept trying to run on GPU and erroring out # https://github.com/NixOS/nixpkgs/pull/516980 - package = pkgs.immich.overrideAttrs (prev: { - passthru = prev.passthru // { - machine-learning = pkgs.immich-machine-learning.override { - python3 = pkgs.python3.override { - packageOverrides = _: pyPrev: { - onnxruntime = pyPrev.onnxruntime.override { - onnxruntime = pkgs.onnxruntime.override { - cudaSupport = true; - }; - }; - }; - }; - }; - }; - }); + package = pkgs.pkgsCuda.immich; # give it access to all hardware devices accelerationDevices = null;