diff --git a/extras/easyOverlay.nix b/extras/easyOverlay.nix index 306836a..fbb1b03 100644 --- a/extras/easyOverlay.nix +++ b/extras/easyOverlay.nix @@ -44,7 +44,12 @@ in config = { flake.overlays.default = final: prev: let - system = prev.stdenv.hostPlatform.system; + system = + prev.stdenv.hostPlatform.system or ( + prev.system or ( + throw "Could not determine the `hostPlatform` of Nixpkgs. Was this overlay loaded as a Nixpkgs overlay, or was it loaded into something else?" + ) + ); perSys = (getSystem system).extendModules { modules = [ {