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