mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-14 11:56:57 +02:00
force the linking and insure the proper access to home folder
This commit is contained in:
parent
ef0f6cc5e0
commit
4b0d698140
|
@ -29,7 +29,8 @@ pkgs.dockerTools.buildImage {
|
|||
${if is-admin then "-G ${jupyterAdminGroup}" else ""} \
|
||||
-p $(cat /pw/hashed-password-${user}) \
|
||||
${user} \
|
||||
&& ln -s /workdir /home/${user}/shared-workdir \
|
||||
&& chown -R ${user}:${jupyterAdminGroup} /home/${user} \
|
||||
&& ln --force -s /workdir /home/${user}/shared-workdir
|
||||
'');
|
||||
|
||||
create-all-users-script = (lib.strings.concatStringsSep "\n" (builtins.map (u: (useradd-string u.username u.isAdmin)) jupyterUsers));
|
||||
|
|
Loading…
Reference in New Issue
Block a user