You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nix-darwin uses createhomedir(1) to create the user's home directory when createHome is set to true (check here). However, createhomedir(1) somehow does not create the home directory.
Is this behavior by design? Or do I misunderstand createhomedir(1)?
To reproduce, add this piece of attribute set to the modules:
{users.users={nix-user={name="nix-user";uid=502;isHidden=true;description="nix-user";shell=pkgs.bashInteractive;home="/home/nix-user";createHome=true;};};users.forceRecreate=true;# always recreate, otherwise createhomedir won't be runusers.knownUsers=["nix-user"];}
After darwin-rebuild switch I can sudo su nix-user, but the home directory of nix-user (/home/nix-user) is not created.
The text was updated successfully, but these errors were encountered:
nix-darwin
usescreatehomedir(1)
to create the user's home directory whencreateHome
is set to true (check here). However,createhomedir(1)
somehow does not create the home directory.Is this behavior by design? Or do I misunderstand
createhomedir(1)
?To reproduce, add this piece of attribute set to the
modules
:After
darwin-rebuild switch
I cansudo su nix-user
, but the home directory ofnix-user
(/home/nix-user) is not created.The text was updated successfully, but these errors were encountered: