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