Pass variables to system home-manager
This commit is contained in:
parent
be207d6648
commit
8ca8b885e2
1 changed files with 14 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue