Change source of user home

This commit is contained in:
niten 2021-10-03 10:19:12 -07:00
parent 722fb553f4
commit 711576e6e4
1 changed files with 3 additions and 2 deletions

View File

@ -36,8 +36,9 @@ in {
users = let
generate-config = username: config-file: let
user-cfg = config.fudo.users.${username};
user-email = user-cfg.email;
home-dir = user-cfg.home-directory;
user-email = if (user-cfg.email != null) then
user-cfg.email else "${username}@${config.instance.local-domain}";
home-dir = config.users.users.${username}.home;
in (import user-configs.${username} {
inherit
config