diff options
Diffstat (limited to 'lib/mk_home.nix')
-rw-r--r-- | lib/mk_home.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mk_home.nix b/lib/mk_home.nix index d416787..b7f780e 100644 --- a/lib/mk_home.nix +++ b/lib/mk_home.nix @@ -1,6 +1,6 @@ { self, home-manager, unstable, ... } @ inputs: { - mkHome = { username, hostname, pkgs, version, extraModules ? null }: + mkHome = { username, hostname, homeDirectory ? "/home/${username}", pkgs, version, extraModules ? null }: let entrypoint = "${self}/home/configs/${hostname}/${username}.nix"; defaultModule = { lib, config, ... }: { @@ -14,8 +14,7 @@ }; home = { - inherit username; - homeDirectory = "/home/${username}"; + inherit username homeDirectory; stateVersion = version; }; }; |