1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-06 16:57:03 +00:00

flake-module: set _class (#6461)

This should *help* prevent bad imports.
This commit is contained in:
isabel 2025-02-16 19:57:15 +00:00 committed by GitHub
parent e5bc9c2af1
commit b15e9ec676
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,7 @@ in {
type = types.lazyAttrsOf types.unspecified;
default = { };
apply = mapAttrs (k: v: {
_class = "homeManager";
_file = "${toString moduleLocation}#homeManagerModules.${k}";
imports = [ v ];
});