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 in
if (configPath != null) if (configPath != null)
then { then {
${username} = { pkgs, ... }@args: import configPath ({ ${username} = { pkgs, ... }: {
inherit machine; imports = [
configPath
];
user = { config = {
name = username; _module.args = {
} // user; inherit machine;
} // args);
user = {
name = username;
} // user;
};
};
};
} }
else {}) else {})
machine.config.users; machine.config.users;