flake: move importFlakeMod & WithSystem into lib / libAnchors

main
Felix Stupp 2 months ago
parent e84aaf361d
commit 123790cf46
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -57,8 +57,8 @@
;
# self: the modules result, via self-reflection
};
importFlakeMod = path: outputs.libAnchors.reflect (import path) flakeArg;
importFlakeModWithSystem = path: lib.forAllSystems (importFlakeMod path);
inherit (outputs.libAnchors) importFlakeMod;
inherit (lib) importFlakeModWithSystem;
in
{
@ -94,6 +94,7 @@
result = outputs;
in
result;
importFlakeMod = path: outputs.libAnchors.reflect (import path) flakeArg;
};
nixosConfigurations = importFlakeMod ./nix/nixos;

@ -16,4 +16,6 @@ nixpkgs.lib
forAllSystems =
gen: inputs.nixpkgs.lib.genAttrs lib.supportedSystems (system: gen (lib.systemSpecificVars system));
importFlakeModWithSystem = path: lib.forAllSystems (lib.importFlakeMod path);
}

Loading…
Cancel
Save