Pass variables to system home-manager

This commit is contained in:
Manuel Thalmann 2024-05-11 20:36:37 +02:00
parent be207d6648
commit 8ca8b885e2

View file

@ -43,13 +43,21 @@
in
if (configPath != null)
then {
${username} = { pkgs, ... }@args: import configPath ({
${username} = { pkgs, ... }: {
imports = [
configPath
];
config = {
_module.args = {
inherit machine;
user = {
name = username;
} // user;
} // args);
};
};
};
}
else {})
machine.config.users;