Skip to content

Instantly share code, notes, and snippets.

@LnL7
Last active July 11, 2020 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LnL7/8999c0f25b1eb74719b13d4d9eeed6cf to your computer and use it in GitHub Desktop.
Save LnL7/8999c0f25b1eb74719b13d4d9eeed6cf to your computer and use it in GitHub Desktop.
docker run --rm -it -v /nix:/nix:ro busybox ~ peach
/ # adduser foo -u 1024
/ # su - foo
~ $ NIX_SSL_CERT_FILE=/nix/var/nix/profiles/system/etc/ssl/certs/ca-certificates.crt /nix/var/nix/profiles/system/sw/bin/nix-build channel:nixpkgs-unstable -A hello --store daemon
/ # adduser bar -u 1000
/ # su - bar
~ $ NIX_SSL_CERT_FILE=/nix/var/nix/profiles/system/etc/ssl/certs/ca-certificates.crt /nix/var/nix/profiles/system/sw/bin/nix-build channel:nixpkgs-unstable -A hello --store daemon
nix-daemon[4030]: accepted connection from pid 4753, user 1024
nix-daemon[4030]: accepted connection from pid 28472, user lnl (trusted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment