From 55cf97b4c3bbe9e41dcb866fb7b7edf5e8425d3d Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@private.storage>
Date: Wed, 3 Nov 2021 21:51:27 +0000
Subject: [PATCH] Accept the nonfree licensed package we require to monitor our
 RAID arrays

Thanks @tomprince!
---
 morph/lib/default.nix | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/morph/lib/default.nix b/morph/lib/default.nix
index 78de2506..a820cc55 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 = [];
   };
 }
-- 
GitLab