Skip to content

Commit

Permalink
fix: invalid pkgs reference
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Nov 27, 2024
1 parent 77426df commit 662522c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
# Legacy alias for nixosConfigurations see https://github.com/oddlama/agenix-rekey/pull/51
nodes ? { },
# The package sets to use. pkgs.${system} must yield an initialized nixpkgs package set
pkgs ? config.pkgs,
pkgs ? pkgs,
# A function that returns the age package given a package set. Use
# this to override which tools is used for encrypting / decrypting.
# Defaults to rage (pkgs.rage). We only guarantee compatibility for
Expand All @@ -87,7 +87,12 @@
}:
lib.genAttrs systems (
system:
pkgs.${system}.lib.genAttrs allApps (
let
pkgs' = import inputs.nixpkgs {
inherit system;
};
in
lib.genAttrs allApps (
app:
import ./apps/${app}.nix {
nodes = import ./nix/select-nodes.nix {
Expand All @@ -97,10 +102,10 @@
homeConfigurations
collectHomeManagerConfigurations
;
inherit (pkgs.${system}) lib;
inherit (pkgs') lib;
};
inherit userFlake agePackage;
pkgs = pkgs.${system};
pkgs = pkgs';
}
)
);
Expand Down

0 comments on commit 662522c

Please sign in to comment.