Given
# ModuleA.nix
{ ... }:
{
nixpkgs.overlays = [ (self: super: { self.my.example = "hello"; }) ];
}
and
# ModuleB.nix
{ ... }:
{
nixpkgs.overlays = [ (self: super: { self.my.example = "goodbye"; }) ];
}
assuming both are imported into a nixos config, is there a rule that tells you what pkgs.my.example
resolves to? What information if any am I missing to determine the order overlays are applied?
I’m aware that in context of import <nixpkgs> { overlays = [ moduleAOverlay moduleBOverlay]; }
that the moduleBOverlay wins out. I’m looking for a similar rule I can apply to nixpkgs.overlays
.