Automatically create home directories

This commit is contained in:
Daniel Frank 2022-01-22 14:53:39 +01:00
parent 84179eb893
commit 43d8d0f926
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -18,7 +18,7 @@ let
sha512 = "034d5y75wr8vyz3r222hxar1wm0vmqryvgcji2lh1f8jxpgs3nchb0w2qv44msz085s9p4i92s96z9cb8zapmwj3anm0p8f156pf34c";
};
getpubkeys = user: builtins.readFile "${sshkeys}/${user}.pub";
mkuser = user: { name = user; isNormalUser = true; extraGroups = [ "wheel" ]; initialPassword = "test1234"; openssh.authorizedKeys.keys = [ (getpubkeys user) ]; };
mkuser = user: { name = user; isNormalUser = true; extraGroups = [ "wheel" ]; createHome = true; initialPassword = "test1234"; openssh.authorizedKeys.keys = [ (getpubkeys user) ]; };
in
{
services.openssh = {