Skip to content

Commit

Permalink
lib: pass inputs to ./lib
Browse files Browse the repository at this point in the history
library functions now can access inputs (and their sources!)
directly, for example in order to copy their closure into
the iso registry so that evaluating the flake does not need
to fetch inputs again
  • Loading branch information
Pacman99 authored and David Arnold committed Mar 16, 2021
1 parent 1ac3d83 commit 75c2dad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
{
nixosConfigurations =
import ./hosts (nixos.lib.recursiveUpdate inputs {
inherit pkgs system extern;
inherit pkgs system extern inputs;
inherit (pkgs) lib;
});

Expand All @@ -57,7 +57,7 @@
overlay = import ./pkgs;
overlays = lib.pathsToImportedAttrs (lib.pathsIn ./overlays);

lib = import ./lib { inherit nixos pkgs self; };
lib = import ./lib { inherit nixos pkgs self inputs; };

templates.flk.path = ./.;
templates.flk.description = "flk template";
Expand Down

0 comments on commit 75c2dad

Please sign in to comment.