From 8ca8b885e2a96770045b9dbad54afae0f2662e32 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 11 May 2024 20:36:37 +0200 Subject: [PATCH] Pass variables to system home-manager --- lib/configuration.nix | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) 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;