Skip to content

Commit 4942a7d

Browse files
committed
Add standard module path compatibility to extras/modules
1 parent 205b12d commit 4942a7d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

extras/modules.nix

+7
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,11 @@ in
6666
apply = mapAttrs (k: mapAttrs (addInfo k));
6767
};
6868
};
69+
config = {
70+
# Copy over to old nixosModules and hmModules attributes
71+
flake = {
72+
nixosModules = lib.optional (lib.hasAttr "nixos" lib.flake.modules) lib.flake.modules.nixos;
73+
hmModules = lib.optional (lib.hasAttr "homeManager" lib.flake.modules) lib.flake.modules.homeManager;
74+
};
75+
};
6976
}

0 commit comments

Comments
 (0)