From d3690e9813c9bc8773a1c0c6a37c9693ad5d137b Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 28 Jan 2026 08:48:55 +1000 Subject: [PATCH] fix flake.overlays not guaranteed --- flake/util.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/flake/util.nix b/flake/util.nix index e5e80ce..c800eec 100644 --- a/flake/util.nix +++ b/flake/util.nix @@ -1,13 +1,18 @@ { flake, - systems, - nixpkgs, + deps, ... }: let inherit (builtins) attrValues ; + + inherit + (deps) + systems + nixpkgs + ; in { forAllSystems = f: nixpkgs.lib.genAttrs systems (system: @@ -15,6 +20,10 @@ in { inherit system; allowUnfree = false; allowBroken = false; - overlays = attrValues flake.overlays; + overlays = attrValues ( + if flake ? overlays + then flake.overlays + else {} + ); })); }