flake-module: set _class (#6461)

This should *help* prevent bad imports.

(cherry picked from commit b15e9ec676)
This commit is contained in:
isabel
2025-02-16 19:57:15 +00:00
committed by Austin Horstman
parent 0f1f1f62b3
commit 574e6ad23f

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 ];
});