mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
nix-unstable-static: add run_as_user.sh script
Allow to run nix as a user.
This commit is contained in:
@@ -61,6 +61,9 @@ let
|
||||
# Make sure /tmp has the right permissions
|
||||
chmod 1777 tmp
|
||||
|
||||
# Add user home folder
|
||||
mkdir home
|
||||
|
||||
# Add SSL CA certs
|
||||
cp -a "${cacert}/etc/ssl/certs/ca-bundle.crt" etc/ssl/certs/ca-bundle.crt
|
||||
|
||||
@@ -80,6 +83,9 @@ let
|
||||
done
|
||||
mkdir -p libexec/nix
|
||||
ln -s /bin/nix libexec/nix/build-remote
|
||||
|
||||
# Add run-as-user script
|
||||
cp -a ${./run_as_user.sh} run_as_user.sh
|
||||
'';
|
||||
|
||||
# To debug
|
||||
|
||||
Reference in New Issue
Block a user