diff --git a/flake.nix b/flake.nix index b6e0d14..f9d6cc3 100644 --- a/flake.nix +++ b/flake.nix @@ -57,8 +57,8 @@ ; # self: the module’s 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; diff --git a/nix/lib/default.nix b/nix/lib/default.nix index 7a29397..69d893d 100644 --- a/nix/lib/default.nix +++ b/nix/lib/default.nix @@ -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); + }