diff --git a/lib/configuration.nix b/lib/configuration.nix index 9b63842..4fef7ff 100644 --- a/lib/configuration.nix +++ b/lib/configuration.nix @@ -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;