1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-05 08:27:02 +00:00

Add comments for key

Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
This commit is contained in:
Yang, Bo 2024-10-08 22:15:57 -07:00 committed by GitHub
parent f46c312332
commit 95a0aa106d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,6 +17,11 @@ in
default = { };
apply = mapAttrs (k: v: {
_file = "${toString moduleLocation}#nixosModules.${k}";
# Note: this neglects to represent potential differences due to input
# overrides or flake-parts extendModules. However, the cost for this
# is too high or plain infeasible respectively. We choose to implement
# deduplication and disabledModules regardless, because not doing
# so poses a more direct problem.
key = "${toString moduleLocation}#nixosModules.${k}";
imports = [ v ];
});