dotfiles/modules/flake/args.nix
Christopher Mühl 8feb3957a2
fix: expose harbor package namespace to overlays
Adds harbor (self.packages) to overlay arguments, allowing custom
packages to reference each other via pkgs.harbor.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-28 01:25:36 +01:00

32 lines
630 B
Nix

{
inputs,
lib,
...
}: {
systems = [
"x86_64-linux"
"x86_64-darwin"
];
perSystem = {
system,
self',
...
}: {
# these settings only apply to flake-local packages being built, not to the
# nixpkgs instance within host and home configurations
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(final: prev: {
writeNushellApplication = import ./lib/_writeNushellApplication.nix {
inherit lib;
pkgs = prev;
};
harbor = inputs.self.packages.${system} or {};
})
];
};
};
}