diff options
author | sefidel <contact@sefidel.net> | 2025-01-19 09:06:16 +1000 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2025-01-19 09:06:16 +1000 |
commit | a43ce2bc409db330fb19ccc6180662a286bafd1a (patch) | |
tree | 79856f0ae788f5f042ac17d302369a9fd30557f1 | |
parent | 0ad9ad6711d1623922b42577e6f60d66c1a5a331 (diff) | |
download | nixrc-a43ce2bc409db330fb19ccc6180662a286bafd1a.tar.gz nixrc-a43ce2bc409db330fb19ccc6180662a286bafd1a.zip |
feat(lib/mk_home): allow setting custom homeDirectory
-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; }; }; |