diff --git a/modules/users/default.nix b/modules/users/default.nix index 5e756946..c3ef4638 100644 --- a/modules/users/default.nix +++ b/modules/users/default.nix @@ -139,6 +139,8 @@ in dscl . -create '/Users/${v.name}' RealName '${v.description}' dscl . -create '/Users/${v.name}' NFSHomeDirectory '${v.home}' dscl . -create '/Users/${v.name}' UserShell '${v.shell}' + mkdir -p '${v.home}' + chown '${toString v.uid}:${toString v.gid}' '${v.home}' else if [ "$u" -ne ${toString v.uid} ]; then echo "warning: existing user '${v.name}' has unexpected uid $u, skipping..." >&2