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

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

Loading…
Cancel
Save