overlays: refactor by using .asFlake attribute

This commit is contained in:
Primrose 2025-09-02 18:51:52 +08:00
parent 52e027ddd2
commit f30709cdea
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
6 changed files with 21 additions and 21 deletions

View file

@ -1,9 +1,7 @@
let
sources = import ../../npins;
inherit (sources) agenix;
inherit (agenix.repository) owner repo;
in
final: _: {
# Use flake so the package inputs is pinned
agenix = (builtins.getFlake "github:${owner}/${repo}/${agenix.revision}").packages.${final.system}.default;
agenix = sources.agenix.asFlake.packages.${final.system}.default;
}