Skip to content

Commit

Permalink
fix: explicitly mention pkgs as module argument
Browse files Browse the repository at this point in the history
The previous change made in PR #31 caused failures when depending on `pkgs` in modules captured by haumea. This is due to the behaviour of `nixpkgs.lib.nixos.evalModules` which does not look up all arguments but only those captured by name explicitly, in addition to `config`, `options`, and `lib` passed by default.

This patch fixes those failures by explicitly making `pkgs` part of the argument list for the module returned by `load`, so that `evalModules` applies the correct argument list.
  • Loading branch information
korrat committed Mar 15, 2024
1 parent d4646e7 commit a976da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
src,
}:
# modules/profiles are always functions
args: let
args @ {pkgs, ...}: let
cr = cell.__cr ++ [(baseNameOf src)];
file = "${self.outPath}#${lib.concatStringsSep "/" cr}";

Expand Down

0 comments on commit a976da4

Please sign in to comment.