example: Inherit all overlays by default

Fixes an issue where the old phinger-cursors wasn't being used and
should future-proof any necessary overlays for the functioning of the
system.
This commit is contained in:
Donovan Glover 2024-06-02 14:48:40 -04:00
parent 541e7e9a71
commit 6bb9350f7a
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -22,10 +22,8 @@ in
inherit (pkgs) ruby php; inherit (pkgs) ruby php;
}; };
nixpkgs.overlays = attrValues { nixpkgs.overlays = attrValues nix-config.overlays ++ [
inherit (nix-config.overlays) hyprland; (final: prev: {
exampleOverlay = final: prev: {
btop = prev.btop.overrideAttrs (oldAttrs: { btop = prev.btop.overrideAttrs (oldAttrs: {
postInstall = (oldAttrs.postInstall or "") + /* bash */ '' postInstall = (oldAttrs.postInstall or "") + /* bash */ ''
echo "#!/usr/bin/env sh" >> btop-overlay echo "#!/usr/bin/env sh" >> btop-overlay
@ -34,6 +32,6 @@ in
install -Dm755 btop-overlay $out/bin/btop-overlay install -Dm755 btop-overlay $out/bin/btop-overlay
''; '';
}); });
}; })
}; ];
} }