flake-module: use raw for homeConfgurations and deferredModule for modules (#6504)

(cherry picked from commit 0c0b0ac8af)
This commit is contained in:
isabel
2025-02-20 14:12:30 +00:00
committed by Austin Horstman
parent 574e6ad23f
commit 304eb219e0

View File

@@ -4,7 +4,7 @@ in {
options = {
flake = flake-parts-lib.mkSubmoduleOptions {
homeConfigurations = mkOption {
type = types.lazyAttrsOf types.deferredModule;
type = types.lazyAttrsOf types.raw;
default = { };
description = ''
Instantiated Home Manager configurations.
@@ -15,7 +15,7 @@ in {
'';
};
homeManagerModules = mkOption {
type = types.lazyAttrsOf types.unspecified;
type = types.lazyAttrsOf types.deferredModule;
default = { };
apply = mapAttrs (k: v: {
_class = "homeManager";