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 (
map (name: {
name = name;
value = import ./home + "/${name}/modules";
value = import (./home + "/${name}/modules");
}) (builtins.attrNames allUsers)
)
);

View file

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