refactor(common): simplify home-manager config
check / lint (push) Successful in 14s

This commit is contained in:
2026-08-22 23:23:50 +02:00
parent 97a2a5b52b
commit 9183b17731
4 changed files with 4 additions and 4 deletions
+4
View File
@@ -9,6 +9,7 @@
let
inherit (inputs.nixpkgs) lib;
homeDir = ../../home/hosts + "/${config.host.name}";
in
{
imports = [
@@ -83,6 +84,9 @@ in
host.username = lib.mkDefault config.host.username;
}
];
users = lib.optionalAttrs (builtins.pathExists homeDir) {
${config.host.username} = import homeDir;
};
};
};
}