change the import method of homeManagerModules."${unixName}" to use outputs.

This commit is contained in:
Ulic-youthlic 2025-01-08 15:15:51 +08:00
parent 6dbbce42cf
commit 750688b2b5
2 changed files with 2 additions and 2 deletions

View file

@ -181,7 +181,7 @@
builtins.listToAttrs ( builtins.listToAttrs (
map (name: { map (name: {
name = name; name = name;
value = import ./home + "/${name}/modules"; value = import (./home + "/${name}/modules");
}) (builtins.attrNames allUsers) }) (builtins.attrNames allUsers)
) )
); );

View file

@ -47,7 +47,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
(rootPath + "/home/${unixName}/modules") outputs.homeManagerModules."${unixName}"
(rootPath + "/home/${unixName}/configurations/${hostName}") (rootPath + "/home/${unixName}/configurations/${hostName}")
]; ];
} }