diff --git a/morph/lib/default.nix b/morph/lib/default.nix index 78de2506382d023bc76b723eb866efc90f20ef7f..a820cc559b6b2da78c06bcb84282e392c3a1ebc7 100644 --- a/morph/lib/default.nix +++ b/morph/lib/default.nix @@ -26,7 +26,11 @@ # Ensure that configuration of the system where this runs # doesn't leak into what we build. # See https://github.com/NixOS/nixpkgs/issues/62513 - config = {}; + config = { pkgs }: let lib = pkgs.lib; in { + allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "megacli" + ]; + }; overlays = []; }; }