nixos/users-groups: allow changing default home directory

This commit is contained in:
Katalin Rebhan 2024-03-04 23:15:13 +01:00
parent 53187aeafe
commit 6f7d7cf76f
No known key found for this signature in database
2 changed files with 10 additions and 2 deletions

View file

@ -217,7 +217,7 @@ in
# /etc/default/useradd: configuration for useradd.
"default/useradd".source = pkgs.writeText "useradd" ''
GROUP=100
HOME=/home
HOME=${config.users.defaultUserHome}
SHELL=${utils.toShellPath config.users.defaultUserShell}
'';
};