NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.94k stars 1.53k forks source link

Nix doesn't work in Github Codespaces #6680

Open kzvi opened 2 years ago

kzvi commented 2 years ago

Describe the bug

1. Using the default Codespaces environment/image without any configuration, it is possible to install Nix in single-user mode using the sh <(curl -L https://nixos.org/nix/install) --no-daemon command. Then the Nix commands are accessible and appear to work, but building anything fails. For example, running

```
nix-build -E 'with import <nixpkgs> {}; writeText "a" "b"'
```

produces the enigmatic error

```
error: suspicious ownership or permission on '/nix/store/ywzcczbp6n4c944jrk99vi7wjws0kx2n-a.drv.chroot/nix/store/5jz2jpipwd0y7iixvi3kax0ydr9zp6cq-a' for output 'out'; rejecting this build output
```

2. Attempting to install Nix in multi-user mode fails with the error message

```
error: getting attributes of path '/nix/store/lvqrpsasgr3jan8l6yfhvcv628jayk2x-busybox-static-x86_64-unknown-linux-musl-1.32.1/bin/busybox': Permission denied
```

Expected behavior

Running Nix in Github Codespaces is probably something that a lot of people will want to do. Even if it is the case that Nix can't support it, it would probably be helpful to have some documentation that states that it is unsupported and/or describes potential workarounds.

Edit: A solution found by @offlinehacker is to first run sudo apt install -y acl && sudo setfacl -k /tmp. Then Nix can be installed normally and building things will succeed. See https://github.com/NixOS/nix/issues/6680#issuecomment-1230902525.

k4ml commented 2 years ago

If I found this issue first, I wouldn't bother to try nix in codespaces but since I have spent few hours trying to get nix working in codespaces, I will share here what I have got so far. This is my Dockerfile:-

# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.236.0/containers/python-3/.devcontainer/base.Dockerfile

# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
ARG VARIANT="3.10-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

RUN apt install -y util-linux netcat

# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi

RUN mkdir -m 0755 /nix && chown vscode /nix && groupadd nixbld && for n in $(seq 1 10); do useradd -c "Nix build user $n" -d /var/empty -g nixbld -G nixbld -M -N -r -s "$(command -v nologin)" "nixbld$n"; done

RUN curl -o nix-install.sh -L https://nixos.org/nix/install && su vscode -c "sh ./nix-install.sh --no-daemon"

# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
# COPY requirements.txt /tmp/pip-tmp/
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
#    && rm -rf /tmp/pip-tmp

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
#     && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment this line to install global node packages.
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

For some reason, $HOME/.profile is not sourced when the workspace started so I have to do it manually in each terminal. But after that things seems to works. docker-compose also working and I managed to get our project running.

k4ml commented 2 years ago

Ughh, building indeed failed. Mine above is working because I'm using cachix so all our packages already built. Try running without cachix and I got similar error:-

building '/nix/store/xgyp58pvyj54d2sav72axmmg6l97456w-yarn2nix-modules-1.0.0-workspace-package.json.drv'...
error: suspicious ownership or permission on '/nix/store/xgyp58pvyj54d2sav72axmmg6l97456w-yarn2nix-modules-1.0.0-workspace-package.json.drv.chroot/nix/store/8v2b2dwwc70g184v31lnp3dcncy1m89q-yarn2nix-modules-1.0.0-workspace-package.json' for output 'out'; rejecting this build output
error: 1 dependencies of derivation '/nix/store/ag3q3bagkd67fq2svlnl0cmr4jw8rj0s-yarn2nix-modules-1.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hsb2kpmm7p2d28n9lqk8pgd20f7j7c67-yarn2nix-1.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4w17g7mndm92jh7jbsqn7qb9q94d44qa-yarn.nix.drv' failed to build
cor commented 2 years ago

@k4ml have you found a workaround yet?

tpwrules commented 2 years ago

This is the failing check: https://github.com/NixOS/nix/blob/3c57db1a0f5438015c19285ec02fd15d9c6cb51f/src/libstore/build/local-derivation-goal.cc#L2178-L2188

What do the permissions of that build .chroot directory look like? Does /nix have the set-uid or set-gid bits on it? I don't have access to Codespaces to check.

k4ml commented 2 years ago

How do I check the permissions for that .chroot directory as it doesn't exists when the command end? /nix is owned by user/group vscode, and the nix command also executed by vscode user.

ls -l /nix
total 320
drwxr-xr-x 1 vscode vscode 311296 Jul 15 00:44 store
drwxr-xr-x 1 vscode vscode   4096 Jul 14 23:33 var

I try setting the build user in /etc/nix/nix.conf but also no use:-

cat /etc/nix/nix.conf 
build-users-group = vscode
tpwrules commented 2 years ago

Can you use strace to run the nix command and see what it is actually doing?

dzmitry-lahoda commented 2 years ago

@k4ml tried same. also tried to set chown vscode:root (like on my wsl ubuntu). no help. tried variations of chmod -R 0755 /nix && chown -R vscode:root /nix (that is kind of installer does).

I think check is broken. Because it allows to install but fails then to build. But if install was suspicions and security issue, than any check later is useless - it was hacked on install. So these checks should be made on par - i.e. same level of security. https://github.com/NixOS/nixpkgs/issues/82357#issuecomment-1229506771

dzmitry-lahoda commented 2 years ago
read(3, "      /nix/store/scd5n7xsn0hh0lv"..., 1024) = 1024
read(3, "8465                    /nix/sto"..., 1024) = 1024
read(3, "q0nzjp-nix-2.10.3/lib/libnixcmd."..., 1024) = 1024
read(3, "           /nix/store/3af6g226v4"..., 1024) = 1024
read(3, "hsv6x7xzh23d6wqyq0nzjp-nix-2.10."..., 1024) = 1024
read(3, "0hh0lvhhnycr9gx0h8xfzsl-glibc-2."..., 1024) = 1024
read(3, "f9a87e72000 r--p 00000000 00:33 "..., 1024) = 1024
read(3, "/3af6g226v4hsv6x7xzh23d6wqyq0nzj"..., 1024) = 1024
read(3, "7f9a88393000-7f9a88394000 r--p 0"..., 1024) = 1024
read(3, "x/store/ga9q4ikprn36wm32gqm4k521"..., 1024) = 1024
close(3)                                = 0
sched_getaffinity(13438, 32, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]) = 8
futex(0x7f9a87e9cae8, FUTEX_WAKE_PRIVATE, 2147483647) = 15
futex(0x7f9a87e9c6c0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f9a87e9caec, FUTEX_WAKE_PRIVATE, 2147483647) = 3
futex(0x7f9a87e9c6c0, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x7f9a87e9cae8, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY) = 0
futex(0x7f9a87e9c6c0, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7f9a87e9caec, FUTEX_WAKE_PRIVATE, 2147483647) = 15
sysinfo({uptime=4376, loads=[24960, 78944, 140736], totalram=33670782976, freeram=331767808, sharedram=1024000, bufferram=1309040640, totalswap=0, freeswap=0, procs=1040, totalhigh=0, freehigh=0, mem_unit=1}) = 0
mmap(0x7f9a7da8d000, 402653184, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f9a65a7d000
getuid()                                = 1000
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f9a6527c000
mprotect(0x7f9a6527d000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT PIPE TERM WINCH], 8) = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f9a65a7c910, parent_tid=0x7f9a65a7c910, exit_signal=0, stack=0x7f9a6527c000, stack_size=0x7ffbc0, tls=0x7f9a65a7c640} => {parent_tid=[13475]}, 88) = 13475
rt_sigprocmask(SIG_SETMASK, [HUP INT PIPE TERM WINCH], NULL, 8) = 0
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
brk(0x22d6000)                          = 0x22d6000
ioctl(2, TCGETS, {B38400 opost isig icanon echo ...}) = 0
mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f9a64a7b000
mprotect(0x7f9a64a7c000, 8388608, PROT_READ|PROT_WRITE) = 0
rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT PIPE TERM WINCH], 8) = 0
clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f9a6527b910, parent_tid=0x7f9a6527b910, exit_signal=0, stack=0x7f9a64a7b000, stack_size=0x7ffbc0, tls=0x7f9a6527b640} => {parent_tid=[13476]}, 88) = 13476
rt_sigprocmask(SIG_SETMASK, [HUP INT PIPE TERM WINCH], NULL, 8) = 0
)                  = 4
futex(0x22bce80, FUTEX_WAKE_PRIVATE, 1) = 1
futex(0x22bcd88, FUTEX_WAKE_PRIVATE, 1) = 1
write(2, "\33[31;1merror:\33[0m unrecognised f"..., 56error: unrecognised flag '-a'
) = 56
write(2, "Try 'nix --help' for more inform"..., 43Try 'nix --help' for more information.
) = 43
exit_group(1)                           = ?
+++ exited with 1 +++
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ ^C
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ strace nix run .#kusama-picasso-karura-devnet -L --show-trace  2>  tee -a strace.log
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ strace nix run .#kusama-picasso-karura-devnet -L --show-trace  2> strace.log
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ stat /nix/
  File: /nix/
  Size: 4096            Blocks: 16         IO Block: 4096   directory
Device: 33h/51d Inode: 1710736     Links: 1
Access: (0755/drwxr-xr-x)  Uid: ( 1000/  vscode)   Gid: (    0/    root)
Access: 2022-08-29 10:54:28.027138364 +0000
Modify: 2022-08-29 08:04:12.531591807 +0000
Change: 2022-08-29 11:08:25.201991716 +0000
 Birth: 2022-08-29 08:11:19.432458431 +0000
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ id
uid=1000(vscode) gid=1000(vscode) groups=1000(vscode),0(root),27(sudo),102(nixbld),103(docker)
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

# See sudoers(5) for more information on "@include" directives:

@includedir /etc/sudoers.d
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ cat  /etc/sudoers.d/
README  vscode  
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ cat  /etc/sudoers.d/vscode 
vscode ALL=(root) NOPASSWD:ALL
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ 
dzmitry-lahoda commented 2 years ago

UPDATE: was cut to 10K lines, there was 20K, will update

https://gist.github.com/dzmitry-lahoda/4c9b5f4a04a855efa6fc8f5449aadede

dzmitry-lahoda commented 2 years ago
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ 
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ nix --version
nix (Nix) 2.10.3
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ whoaim
bash: whoaim: command not found
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ whoami
vscode
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ uname -a
Linux codespaces-4e4765 5.4.0-1086-azure #91~18.04.1-Ubuntu SMP Thu Jun 23 20:33:05 UTC 2022 x86_64 GNU/Linux
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ 
dzmitry-lahoda commented 2 years ago

Did not help

@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ stat /nix/
  File: /nix/
  Size: 4096            Blocks: 16         IO Block: 4096   directory
Device: 33h/51d Inode: 1710736     Links: 1
Access: (0700/drwx------)  Uid: ( 1000/  vscode)   Gid: ( 1000/  vscode)
Access: 2022-08-29 11:25:21.917014911 +0000
Modify: 2022-08-29 08:04:12.531591807 +0000
Change: 2022-08-29 11:25:25.249091399 +0000
 Birth: 2022-08-29 08:11:19.432458431 +0000

Tried to read C++ code - no comprehend. 🦀

dzmitry-lahoda commented 2 years ago
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ nix show-config
accept-flake-config = false
access-tokens = 
allow-dirty = true
allow-import-from-derivation = true
allow-new-privileges = false
allow-symlinked-store = false
allow-unsafe-native-code-during-evaluation = false
allowed-impure-host-deps = 
allowed-uris = 
allowed-users = *
auto-optimise-store = false
bash-prompt = 
bash-prompt-prefix = 
bash-prompt-suffix = 
build-hook = /nix/store/3af6g226v4hsv6x7xzh23d6wqyq0nzjp-nix-2.10.3/bin/nix __build-remote
build-poll-interval = 5
build-users-group = 
builders = @/etc/nix/machines
builders-use-substitutes = false
commit-lockfile-summary = 
compress-build-log = true
connect-timeout = 0
cores = 16
diff-hook = 
download-attempts = 5
enforce-determinism = true
eval-cache = true
experimental-features = flakes nix-command
extra-platforms = i686-linux x86_64-v1-linux x86_64-v2-linux x86_64-v3-linux x86_64-v4-linux
fallback = false
filter-syscalls = true
flake-registry = https://channels.nixos.org/flake-registry.json
fsync-metadata = true
gc-reserved-space = 8388608
hashed-mirrors = 
http-connections = 25
http2 = true
ignore-try = false
ignored-acls = security.csm security.selinux system.nfs4_acl
impersonate-linux-26 = false
keep-build-log = true
keep-derivations = true
keep-env-derivations = false
keep-failed = false
keep-going = false
keep-outputs = false
log-lines = 10
max-build-log-size = 0
max-free = 18446744073709551615
max-jobs = 1
max-silent-time = 0
min-free = 0
min-free-check-interval = 5
nar-buffer-size = 33554432
narinfo-cache-negative-ttl = 60
narinfo-cache-positive-ttl = 2592000
netrc-file = /etc/nix/netrc
nix-path = /home/vscode/.nix-defexpr/channels
plugin-files = 
post-build-hook = 
pre-build-hook = 
preallocate-contents = false
print-missing = true
pure-eval = true
repeat = 0
require-sigs = true
restrict-eval = false
run-diff-hook = false
sandbox = relaxed
sandbox-build-dir = /build
sandbox-dev-shm-size = 50%
sandbox-fallback = true
sandbox-paths = /bin/sh=/nix/store/0296qxvn30z9b2ah1g5p97k5wr9k8y78-busybox-static-x86_64-unknown-linux-musl-1.35.0/bin/busybox
secret-key-files = 
show-trace = false
stalled-download-timeout = 300
store = auto
substitute = true
substituters = https://cache.nixos.org https://composable-community.cachix.org
sync-before-registering = false
system = x86_64-linux
system-features = benchmark big-parallel nixos-test
tarball-ttl = 3600
timeout = 0
trace-function-calls = false
trace-verbose = false
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= composable-community.cachix.org-1:GG4xJNpXJ+J97I8EyJ4qI5tRTAJ4i7h+NK2Z32I8sK8=
trusted-substituters = 
trusted-users = root
use-case-hack = false
use-registries = true
use-sqlite-wal = true
user-agent-suffix = 
dzmitry-lahoda commented 2 years ago

will donate 10 DOT Polkadot for fix

hussein-aitlahcen commented 2 years ago

This would be very interesting to build codespace based dev containers. Any chance someone experienced with the low-level issue check this out?

cor commented 2 years ago

It's also a big blocker for our team. We really want to use nix for our cloud based dev environments

offlinehacker commented 2 years ago

@cor @hussein-aitlahcen does this devcontainer image work for you https://github.com/xtruder/nix-devcontainer? I have tested in github codespaces and it seems to work without issues. Here is example project: https://github.com/xtruder/nix-devcontainer-python-jupyter

dsyer commented 2 years ago

It’s broken the same way for me (builds fail, but cached results are fine). Same config works locally in VSCode - only codespaces seems broken.

SuperSandro2000 commented 2 years ago
  • produces the enigmatic error
    error: suspicious ownership or permission on '/nix/store/ywzcczbp6n4c944jrk99vi7wjws0kx2n-a.drv.chroot/nix/store/5jz2jpipwd0y7iixvi3kax0ydr9zp6cq-a' for output 'out'; rejecting this build output

That error is very clear: The ownership of the nix store path is not what nix expects.

ls -l /nix total 320 drwxr-xr-x 1 vscode vscode 311296 Jul 15 00:44 store drwxr-xr-x 1 vscode vscode 4096 Jul 14 23:33 var

which is confirmed by this.

2. Attempting to install Nix in multi-user mode fails with the error message

    error: getting attributes of path '/nix/store/lvqrpsasgr3jan8l6yfhvcv628jayk2x-busybox-static-x86_64-unknown-linux-musl-1.32.1/bin/busybox': Permission denied

The file nix tried to download has no executable bit set.


What is / in codespaces? Is this some mounted filesystem which enforces permissions and/or has noexec set? What is the output of mount?

dzmitry-lahoda commented 2 years ago

I bake container with nix https://github.com/ComposableFi/composable/blob/dz/byog-container/Dockerfile . Hey there is no error about mutli user.

I run it with https://github.com/ComposableFi/composable/blob/dz/byog-container/.devcontainer/devcontainer.json . How I run?

In local VS Code -> Remote-Containers : Rebuild and Reopen. It opens. I can:

  1. run all installed packages
  2. call nix and build new one in my repo.
  3. run them

If I open GitHub page and click Codespace. And run same configuraiton remotely.

  1. same
  2. can run nix, it even builds something, but fails with suspicious ownership or permission

So problem is you can build container, but cannot use nix in it.

You may look into my report. I tried many kinds of permissions and owners, did not helped.

Why remote differs from local? I do not know.

dzmitry-lahoda commented 2 years ago

@SuperSandro2000 what exactly nix expects? If I would know, I would chown/chmod.

dzmitry-lahoda commented 2 years ago

As per line,

https://github.com/NixOS/nix/blob/ddb82ffda993d237d62d59578f7808a9d98c77fe/src/libstore/build/local-derivation-goal.cc#L2207

need this

chmod -R a+rwx,g-w,o-w folder_name

tied. possible nix itself produced new files which are g+w?

dzmitry-lahoda commented 2 years ago

this tells

https://github.com/NixOS/nix/blob/ddb82ffda993d237d62d59578f7808a9d98c77fe/src/libstore/build/local-derivation-goal.cc#L2208

there is current build user who and the files was not produced by she. who is she

https://github.com/NixOS/nix/blob/2fef24f528769d7fedd3275873b59956b13257d1/src/libstore/lock.cc#L32

so take build group from config, and find all users in that group and take some free user.

-L --show-trace to not show debug level info. would be nice is this case. or there is more flags?

dzmitry-lahoda commented 2 years ago

i have ideas how to debug futher, but bad I cannot have low level logs. plan is to build, but not not clean deleted files, catch their codes (strace also shows something). and match how files move along nix flow, and their rights.

SuperSandro2000 commented 2 years ago

@SuperSandro2000 what exactly nix expects? If I would know, I would chown/chmod.

/nix should be owned by root:root and have 755 and /nix/store should be owned by root:nixbld and have 775.

PS It would be nice if you could edit previous comments to append new information.

offlinehacker commented 2 years ago

@SuperSandro2000 nix is running in single user mode here, root:nixbld is only for multi-user mode

offlinehacker commented 2 years ago

So it turns out default file permissions are set on /tmp. If you do getfacl /tmp you get:

$ getfacl /tmp
getfacl: Removing leading '/' from absolute path names
# file: tmp
# owner: root
# group: root
# flags: --t
user::rwx
group::rwx
other::rwx
default:user::rwx
default:group::r-x
default:other::rw-

This will set invalid permissions in temporary build files created inside /tmp:

$ ls -la /tmp/nix-build-a.drv-0
total 20
drwxrwxr-x+  2 vscode vscode 4096 Aug 29 21:23 .
drwxrwxrwt  12 root   root   4096 Aug 29 21:31 ..
-rw-rwxrw-   1 vscode vscode  215 Aug 29 21:23 .attr-0l2nkwhif96f51f4amnlf414lhl4rv9vh8iffyp431v6s28gsr90
-rw-rwxrw-   1 vscode vscode 4410 Aug 29 21:23 env-vars

To fix this you we have to remove default permissions by running

setfacl -k /tmp

This will indeed remove default permissions

$ getfacl /tmp
getfacl: Removing leading '/' from absolute path names
# file: tmp
# owner: root
# group: root
# flags: --t
user::rwx
group::rwx
other::rwx

This also requires acl package to be installed, something like

RUN sudo apt install -y acl && sudo setfacl -k /tmp

Of course we want to put this into base image. Now we can successfully run nix-build:

nix-build --keep-failed -E 'with import <nixpkgs> {}; writeText "a" "test1234"'
this derivation will be built:
  /nix/store/ijwhizywnj2z9ihw6fks35kza7v13all-a.drv
building '/nix/store/ijwhizywnj2z9ihw6fks35kza7v13all-a.drv'...
/nix/store/fkh5gjh1f76686l0zjyv482zv8874l7r-a

ls -la /nix/store/fkh5gjh1f76686l0zjyv482zv8874l7r-a
-r--r--r-- 1 vscode vscode 4 Jan  1  1970 /nix/store/fkh5gjh1f76686l0zjyv482zv8874l7r-a
dzmitry-lahoda commented 2 years ago

@offlinehacker we are on flake and used home-manager.

so, i see:

  1. can try to hook chmod to home as in repo, so i tried to do it after start on nix - no help
  2. it does not fixes tmp, which for sure issue (it is different locally - fixed).
  3. also, it adds to devcontainers sudoers - good enough - will try.
  4. so we rely on home-manager to bake env before vscode starts, so it starts in already env with stuff. not selector. for now.
offlinehacker commented 2 years ago

I didn't check whether permissions for/tmp are set in runtime or at build time. If they are set at runtime maybe postStartCommand in devcontainer.json could be used, it's not the nicest way.

dzmitry-lahoda commented 2 years ago

just did

@dzmitry-lahoda ➜ /tmp $ umask -S
u=rwx,g=rwx,o=rwx
@dzmitry-lahoda ➜ /tmp $ stat .
  File: .
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 801h/2049d      Inode: 7077889     Links: 2
Access: (0777/drwxrwxrwx)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2022-08-29 22:47:08.960496766 +0000
Modify: 2022-08-29 22:54:19.534930443 +0000
Change: 2022-08-29 22:56:26.920994742 +0000
 Birth: 2022-08-29 18:35:42.759109060 +0000
@dzmitry-lahoda ➜ /tmp $ 

I guess it same as acl, so not sure about # flags: --t.

@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $  nix run github:ComposableFi/Composable/49473d1e4a86abe62abfad5648532dab3cef15ec#devnet-xcvm-up -L 
error: suspicious ownership or permission on '/nix/store/7vvz20llvwpj5n9dg2qqcpjqwhjk92i6-devnet-dali-dev-config.json.drv.chroot/nix/store/pc0zjd14ml939h14vjlcn99a5h3yfs82-devnet-dali-dev-config.json' for output 'out'; rejecting this build output
error: 1 dependencies of derivation '/nix/store/p499sdab2n9pwyilhfbkn0zdp94hx12h-run-devnet-dali-dev.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7js7vxd63n84cyl7f31zsyaf695j3qkk-docker-compose.yaml.drv' failed to build
error: 1 dependencies of derivation '/nix/store/p92gr3sd3cb5wnz40bszvjgjwg3c6356-devnet-xcvm-up.drv' failed to build
@dzmitry-lahoda ➜ /workspaces/composable (dz/byog-container ✗) $ 
dzmitry-lahoda commented 2 years ago

Will try above, so with setfacl, so not sure why usmask did not worked.

Also other difference, locally I disabled docker-in-docker feature and it worked nice.

image

Remotely it was enabled and installed (derived container) docker

image

So still not clear if I changed default permissions, why it not works.

offlinehacker commented 2 years ago

will donate 10 DOT Polkadot for fix

@dzmitry-lahoda any DOT for finding what causes the issue? :beer: :smile:

dzmitry-lahoda commented 2 years ago

5 DOT. It fixed only half of issue. Fix does not work for me without chmod https://github.com/ComposableFi/composable/blob/dz/byog-container/.devcontainer/devcontainer.json#L11

dzmitry-lahoda commented 2 years ago

so nix could be more friendly about what exactly it disliked. so people are more easy to clear. so kind of check ACL and permission and tell whole story that with such and such permissions running under such users permissions to others violate isolation. really it should fail not on /nix folder, but on /tmp folder before files even copied.

offlinehacker commented 2 years ago

Nix could set its own default permissions for /tmp/nix-build-* I think

dzmitry-lahoda commented 2 years ago

I think nix should operate in security defined by admin, regarding /tmp and how rights transfered into /nix/store. So security protocol is locked and has well known interface. So it what nix can do is to fail on /tmp before even building.

It can put dummy file into tmp, check permission and say it would not build with such stuff as it is unsecure because of this and this. Just early fail (the closer fail to root cause the easy to fix) and good explainer for non linux users like me (here is ACL and permision, your are running under U:G - see that other users can tampler your stuff, please change it to some more restrictive).

offlinehacker commented 2 years ago

Sorry what I meant is that nix would set right permissions for folders it creates in /tmp, because if builds are not running in sandbox, invalid permissions from /tmp will propagate to folders/files created in build directories.

NickHu commented 2 years ago

Is this issue still relevant with the advent of https://github.com/devcontainers/features/pull/228 getting merged?

Yes, it is; GitHub Codespaces fails to launch on empty repo https://github.com/NickHu/nix-codespace-test using this feature too:


=================================================================================
2022-11-11 11:52:50.302Z: Configuration starting...
2022-11-11 11:52:50.388Z: Cloning...
2022-11-11 11:52:50.403Z: $ git -C "/var/lib/docker/codespacemount/workspace" clone --branch master --depth 1 https://github.com/NickHu/nix-codespace-test "/var/lib/docker/codespacemount/workspace/nix-codespace-test"
2022-11-11 11:52:50.457Z: Cloning into '/var/lib/docker/codespacemount/workspace/nix-codespace-test'...
2022-11-11 11:52:52.602Z: git process exited with exit code 0
2022-11-11 11:52:52.621Z: $ git -C "/var/lib/docker/codespacemount/workspace/nix-codespace-test" config --local remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
2022-11-11 11:52:52.626Z: git process exited with exit code 0
2022-11-11 11:52:52.741Z: Using image: mcr.microsoft.com/devcontainers/universal:2

=================================================================================
2022-11-11 11:52:53.266Z: Creating container...
2022-11-11 11:52:53.715Z: @microsoft/vscode-dev-containers-cli 0.74.2.
2022-11-11 11:52:53.770Z: Start: Resolving Remote
2022-11-11 11:52:53.771Z: $ docker ps -q -a --filter label=Type=codespaces
2022-11-11 11:52:53.771Z: Stop (39 ms): Run: docker ps -q -a --filter label=Type=codespaces
2022-11-11 11:52:53.771Z: $ /usr/bin/node /usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --workspace-folder /var/lib/docker/codespacemount/workspace/nix-codespace-test --id-label Type=codespaces --log-level info --log-format json --config /var/lib/docker/codespacemount/workspace/nix-codespace-test/.devcontainer/devcontainer.json --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --skip-post-create --update-remote-user-uid-default never --mount-workspace-git-root false
2022-11-11 11:52:53.970Z: @devcontainers/cli 0.23.2. Node.js v14.20.1. linux 5.4.0-1094-azure x64.
2022-11-11 11:52:53.970Z: $ docker buildx version
2022-11-11 11:52:54.050Z: Stop (91 ms): Run: docker buildx version
2022-11-11 11:52:54.050Z: github.com/docker/buildx 0.9.1+azure-2 ed00243a0ce2a0aee75311b06e32d33b44729689
2022-11-11 11:52:54.050Z: 
2022-11-11 11:52:54.050Z: Start: Resolving Remote
2022-11-11 11:52:54.079Z: $ docker ps -q -a --filter label=Type=codespaces
2022-11-11 11:52:54.079Z: Stop (24 ms): Run: docker ps -q -a --filter label=Type=codespaces
2022-11-11 11:52:54.079Z: $2
2022-11-11 11:52:54.107Z: Stop (24 ms): Run: docker inspect --type image mcr.microsoft.com/devcontainers/universal:2
2022-11-11 11:52:54.107Z: local container features stored at: /usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/node_modules/vscode-dev-containers/container-features
2022-11-11 11:52:54.107Z: $ tar --no-same-owner -x -f -
2022-11-11 11:52:54.162Z: Stop (30 ms): Run: tar --no-same-owner -x -f -
2022-11-11 11:52:54.162Z: * Processing feature: ghcr.io/devcontainers/features/nix:1
2022-11-11 11:52:54.695Z: * Fetching feature: nix_1_oci
2022-11-11 11:52:55.374Z: $2 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-nix-codespace-test-c43aa416198c50988ea422844de72011-features -f /tmp/devcontainercli-root/container-features/0.23.2-1668167574104/Dockerfile.extended /var/lib/docker/codespacemount/.persistedshare/empty-folder
2022-11-11 11:52:55.738Z: #1 [internal] load build definition from Dockerfile.extended
2022-11-11 11:52:55.738Z: #1 transferring dockerfile: 6.96kB done
2022-11-11 11:52:55.738Z: #1 DONE 0.1s
2022-11-11 11:52:55.738Z: 
2022-11-11 11:52:55.738Z: #2 [internal] load .dockerignore
2022-11-11 11:52:55.738Z: #2 transferring context: 2B done
2022-11-11 11:52:55.851Z: #2 DONE 0.2s
2022-11-11 11:52:55.851Z: 
2022-11-11 11:52:55.851Z: #3 resolve image config for docker.io/docker/dockerfile:1.4
2022-11-11 11:52:56.414Z: #3 ...
2022-11-11 11:52:56.414Z: 
2022-11-11 11:52:56.414Z: #4 [auth] docker/dockerfile:pull token for registry-1.docker.io
2022-11-11 11:52:56.414Z: #4 DONE 0.0s
2022-11-11 11:52:56.553Z: 
2022-11-11 11:52:56.553Z: #3 resolve image config for docker.io/docker/dockerfile:1.4
2022-11-11 11:52:57.449Z: #3 DONE 1.6s
2022-11-11 11:52:57.589Z: 
2022-11-11 11:52:57.590Z: #5 docker-image://docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc
2022-11-11 11:52:57.590Z: #5 resolve docker.io/docker/dockerfile:1.4@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 0.1s done
2022-11-11 11:52:57.744Z: #5 sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 2.00kB / 2.00kB done
2022-11-11 11:52:57.744Z: #5 sha256:ad87fb03593d1b71f9a1cfc1406c4aafcb253b1dabebf569768d6e6166836f34 528B / 528B done
2022-11-11 11:52:57.754Z: 
2022-11-11 11:52:57.754Z: #5 sha256:1e8a16826fd1c80a63fa6817a9c7284c94e40cded14a9b0d0d3722356efa47bd 2.37kB / 2.37kB done
2022-11-11 11:52:57.754Z: 
2022-11-11 11:52:57.754Z: #5 sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 0B / 9.94MB 0.1s
2022-11-11 11:52:57.754Z: 
2022-11-11 11:52:57.911Z: #5 sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 9.94MB / 9.94MB 0.3s
2022-11-11 11:52:58.010Z: #5 sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 9.94MB / 9.94MB 0.3s done
2022-11-11 11:52:58.010Z: #5 extracting sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 0.1s
2022-11-11 11:52:58.261Z: #5 extracting sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 0.2s done
2022-11-11 11:52:58.572Z: #5 DONE 1.0s
2022-11-11 11:52:58.851Z: 
2022-11-11 11:52:58.851Z: #6 [internal] load build definition from Dockerfile.extended
2022-11-11 11:52:58.851Z: #6 DONE 0.0s
2022-11-11 11:52:58.851Z: 
2022-11-11 11:52:58.851Z: #7 [internal] load .dockerignore
2022-11-11 11:52:58.851Z: #7 DONE 0.0s
2022-11-11 11:52:58.851Z: 
2022-11-11 11:52:58.851Z: #8 [internal] load metadata for mcr.microsoft.com/devcontainers/universal:2
2022-11-11 11:52:58.851Z: #8 DONE 0.0s
2022-11-11 11:52:58.851Z: 
2022-11-11 11:52:58.851Z: #9 [context dev_containers_feature_content_source] load .dockerignore
2022-11-11 11:52:58.851Z: #9 transferring dev_containers_feature_content_source:
2022-11-11 11:52:59.019Z: #9 transferring dev_containers_feature_content_source: 2B done
2022-11-11 11:52:59.019Z: 
2022-11-11 11:52:59.019Z: #9 DONE 0.1s
2022-11-11 11:52:59.020Z: 
2022-11-11 11:52:59.272Z: 
2022-11-11 11:52:59.272Z: #10 [dev_containers_feature_content_normalize 1/3] FROM mcr.microsoft.com/devcontainers/universal:2
2022-11-11 11:52:59.272Z: #10 CACHED
2022-11-11 11:52:59.272Z: 
2022-11-11 11:52:59.273Z: #11 [context dev_containers_feature_content_source] load from client
2022-11-11 11:52:59.410Z: #11 transferring dev_containers_feature_content_source: 329.78kB done
2022-11-11 11:52:59.410Z: #11 DONE 0.2s
2022-11-11 11:52:59.410Z: 
2022-11-11 11:52:59.410Z: #12 [dev_containers_feature_content_normalize 2/3] COPY --from=dev_containers_feature_content_source . /tmp/build-features/
2022-11-11 11:52:59.688Z: #12 DONE 0.3s
2022-11-11 11:52:59.688Z: 
2022-11-11 11:52:59.711Z: 
2022-11-11 11:52:59.711Z: #13 [dev_containers_feature_content_normalize 3/3] RUN chmod -R 0700 /tmp/build-features
2022-11-11 11:53:02.723Z: #13 DONE 2.9s
2022-11-11 11:53:02.867Z: 
2022-11-11 11:53:02.867Z: #14 [dev_containers_target_stage 2/4] COPY --from=dev_containers_feature_content_normalize /tmp/build-features /tmp/build-features
2022-11-11 11:53:03.172Z: #14 DONE 0.2s
2022-11-11 11:53:03.172Z: 
2022-11-11 11:53:03.172Z: #15 [dev_containers_target_stage 3/4] RUN echo "_CONTAINER_USER_HOME=$(getent passwd codespace | cut -d: -f6)" >> /tmp/build-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$(getent passwd codespace | cut -d: -f6)" >> /tmp/build-features/devcontainer-features.builtin.env
2022-11-11 11:53:03.766Z: #15 DONE 0.6s
2022-11-11 11:53:03.766Z: 
2022-11-11 11:53:03.766Z: #16 [dev_containers_target_stage 4/4] RUN cd /tmp/build-features/nix_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh
2022-11-11 11:53:04.374Z: #16 0.561 ===========================================================================
2022-11-11 11:53:04.374Z: #16 0.561 Feature       : Nix Package Manager
2022-11-11 11:53:04.375Z: 
2022-11-11 11:53:04.375Z: #16 0.561 Description   : Installs the Nix package manager and optionally a set of packages.
2022-11-11 11:53:04.375Z: #16 0.561 Id            : ghcr.io/devcontainers/features/nix
2022-11-11 11:53:04.375Z: #16 0.561 Version       : 1.0.0
2022-11-11 11:53:04.375Z: #16 0.561 Documentation : https://github.com/devcontainers/features/tree/main/src/nix
2022-11-11 11:53:04.375Z: #16 0.561 Options       :
2022-11-11 11:53:04.375Z: #16 0.561     VERSION="latest"
2022-11-11 11:53:04.375Z: #16 0.561     MULTIUSER="true"
2022-11-11 11:53:04.375Z: #16 0.561     PACKAGES=""
2022-11-11 11:53:04.375Z: #16 0.561     FLAKEURI=""
2022-11-11 11:53:04.375Z: #16 0.561 ===========================================================================
2022-11-11 11:53:04.795Z: #16 1.050 Get:1 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal InRelease [10.5 kB]
2022-11-11 11:53:04.795Z: #16 1.069 Get:2 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
2022-11-11 11:53:04.795Z: #16 1.106 Get:3 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable InRelease [3171 B]
2022-11-11 11:53:04.907Z: #16 1.190 Get:4 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
2022-11-11 11:53:04.907Z: #16 1.211 Get:5 https://packages.microsoft.com/repos/microsoft-ubuntu-focal-prod focal/main amd64 Packages [229 kB]
2022-11-11 11:53:05.028Z: #16 1.254 Get:6 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
2022-11-11 11:53:05.028Z: #16 1.319 Get:7 https://dl.yarnpkg.com/debian stable/main all Packages [11.1 kB]
2022-11-11 11:53:05.167Z: #16 1.331 Get:8 https://dl.yarnpkg.com/debian stable/main amd64 Packages [11.1 kB]
2022-11-11 11:53:05.167Z: #16 1.386 Get:9 https://repo.anaconda.com/pkgs/misc/debrepo/conda stable/main amd64 Packages [1970 B]
2022-11-11 11:53:05.469Z: #16 1.660 Get:10 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [2269 kB]
2022-11-11 11:53:05.469Z: #16 1.710 Get:12 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
2022-11-11 11:53:05.469Z: 
2022-11-11 11:53:05.609Z: #16 1.818 Get:13 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
2022-11-11 11:53:05.779Z: #16 1.927 Get:14 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
2022-11-11 11:53:05.779Z: #16 1.935 Get:15 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
2022-11-11 11:53:05.779Z: 
2022-11-11 11:53:05.779Z: #16 1.976 Get:16 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
2022-11-11 11:53:05.779Z: 
2022-11-11 11:53:05.916Z: #16 2.131 Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [931 kB]
2022-11-11 11:53:05.916Z: #16 2.156 Get:18 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [1661 kB]
2022-11-11 11:53:05.916Z: #16 2.222 Get:19 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [27.5 kB]
2022-11-11 11:53:06.207Z: #16 2.443 Get:11 https://packagecloud.io/github/git-lfs/ubuntu focal InRelease [24.4 kB]
2022-11-11 11:53:06.207Z: #16 2.475 Get:20 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
2022-11-11 11:53:06.325Z: #16 2.514 Get:21 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1229 kB]
2022-11-11 11:53:06.325Z: #16 2.552 Get:22 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [30.2 kB]
2022-11-11 11:53:06.325Z: #16 2.554 Get:23 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2738 kB]
2022-11-11 11:53:06.483Z: #16 2.638 Get:24 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1778 kB]
2022-11-11 11:53:06.483Z: #16 2.692 Get:25 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [55.2 kB]
2022-11-11 11:53:06.483Z: 
2022-11-11 11:53:06.483Z: #16 2.693 Get:26 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [27.5 kB]
2022-11-11 11:53:07.830Z: #16 4.013 Get:27 https://packagecloud.io/github/git-lfs/ubuntu focal/main amd64 Packages [2944 B]
2022-11-11 11:53:07.830Z: #16 4.074 Fetched 24.5 MB in 3s (8030 kB/s)
2022-11-11 11:53:07.830Z: #16 4.074 Reading package lists...
2022-11-11 11:53:08.726Z: 
2022-11-11 11:53:09.288Z: #16 5.586 Adjusted VERSION=2.11.1
2022-11-11 11:53:09.427Z: #16 5.588 (*) Downloading Nix installer...
2022-11-11 11:53:09.891Z: #16 6.079 (*) Downloading GPG key...
2022-11-11 11:53:09.982Z: #16 6.269 gpg: assuming signed data in './install-nix'
2022-11-11 11:53:09.982Z: #16 6.270 gpg: Signature made Thu Sep 15 17:12:21 2022 UTC
2022-11-11 11:53:09.982Z: #16 6.270 gpg:                using RSA key B541D55301270E0BCF15CA5D8170B4726D7198DE
2022-11-11 11:53:09.982Z: #16 6.270 gpg: Good signature from "Eelco Dolstra <edolstra@gmail.com>" [unknown]
2022-11-11 11:53:09.982Z: #16 6.270 gpg:                 aka "Eelco Dolstra <eelco.dolstra@tweag.io>" [unknown]
2022-11-11 11:53:09.982Z: #16 6.270 gpg:                 aka "Eelco Dolstra <eelco.dolstra@logicblox.com>" [unknown]
2022-11-11 11:53:09.982Z: #16 6.271 gpg: WARNING: This key is not certified with a trusted signature!
2022-11-11 11:53:09.982Z: #16 6.271 gpg:          There is no indication that the signature belongs to the owner.
2022-11-11 11:53:09.982Z: #16 6.271 Primary key fingerprint: B541 D553 0127 0E0B CF15  CA5D 8170 B472 6D71 98DE
2022-11-11 11:53:09.982Z: #16 6.272 (*) Performing multi-user install...
2022-11-11 11:53:09.982Z: #16 6.281 downloading Nix 2.11.1 binary tarball for x86_64-linux from 'https://releases.nixos.org/nix/nix-2.11.1/nix-2.11.1-x86_64-linux.tar.xz' to '/tmp/nix-binary-tarball-unpack.cessMJDOtv'...
2022-11-11 11:53:09.983Z: #16 6.288   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2022-11-11 11:53:09.983Z: #16 6.290                                  Dload  Upload   
2022-11-11 11:53:10.123Z: Total   Spent    Left  Speed
2022-11-11 11:53:10.124Z: #16 6.293 
2022-11-11 11:53:10.124Z:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2022-11-11 11:53:10.124Z: 100 19.4M  100 19.4M    0     0   208M      0 --:--:-- --:--:-- --:--:--  208M
2022-11-11 11:53:12.179Z: #16 8.438 Note: a multi-user installation is possible. See https://nixos.org/manual/nix/stable/installation/installing-binary.html#multi-user-installation
2022-11-11 11:53:12.179Z: #16 8.440 Switching to the Multi-user Installer
2022-11-11 11:53:12.179Z: #16 8.463 Welcome to the Multi-User Nix Installation
2022-11-11 11:53:12.179Z: #16 8.463 
2022-11-11 11:53:12.179Z: #16 8.465 This installation tool will set up your computer with the Nix package
2022-11-11 11:53:12.179Z: #16 8.465 manager. This will happen in a few stages:
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 1. Make sure your computer doesn't already have Nix. If it does, I
2022-11-11 11:53:12.179Z: #16 8.465    will show you instructions on how to clean up your old install.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 2. Show you what I am going to install and where. Then I will ask
2022-11-11 11:53:12.179Z: #16 8.465    if you are ready to continue.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 3. Create the system users and groups that the Nix daemon uses to run
2022-11-11 11:53:12.179Z: #16 8.465    builds.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 4. Perform the basic installation of the Nix files daemon.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 5. Configure your shell to import special Nix Profile files, so you
2022-11-11 11:53:12.179Z: #16 8.465    can use Nix.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.465 6. Start the Nix daemon.
2022-11-11 11:53:12.179Z: #16 8.465 
2022-11-11 11:53:12.179Z: #16 8.466 Would you like to see a more detailed list of what I will do?
2022-11-11 11:53:12.179Z: #16 8.466 No TTY, assuming you would say yes :)
2022-11-11 11:53:12.179Z: #16 8.467 
2022-11-11 11:53:12.179Z: #16 8.467 I will:
2022-11-11 11:53:12.179Z: #16 8.467 
2022-11-11 11:53:12.179Z: #16 8.467  - make sure your computer doesn't already have Nix files
2022-11-11 11:53:12.179Z: #16 8.467    (if it does, I will tell you how to clean them up.)
2022-11-11 11:53:12.179Z: #16 8.467  - create local users (see the list above for the users I'll make)
2022-11-11 11:53:12.179Z: #16 8.467  - create a local group (nixbld)
2022-11-11 11:53:12.179Z: #16 8.467  - install Nix in to /nix
2022-11-11 11:53:12.179Z: #16 8.467  - create a configuration file in /etc/nix
2022-11-11 11:53:12.179Z: #16 8.467  - set up the "default profile" by creating some Nix-related files in
2022-11-11 11:53:12.179Z: #16 8.467    /root
2022-11-11 11:53:12.179Z: #16 8.469  - back up /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix
2022-11-11 11:53:12.179Z: #16 8.469  - update /etc/bash.bashrc to include some Nix configuration
2022-11-11 11:53:12.179Z: #16 8.471  - back up /etc/zsh/zshrc to /etc/zsh/zshrc.backup-before-nix
2022-11-11 11:53:12.179Z: #16 8.471  - update /etc/zsh/zshrc to include some Nix configuration
2022-11-11 11:53:12.179Z: #16 8.472  - load and start a service (at /etc/systemd/system/nix-daemon.service
2022-11-11 11:53:12.179Z: #16 8.472    and /etc/systemd/system/nix-daemon.socket) for nix-daemon
2022-11-11 11:53:12.179Z: #16 8.472 
2022-11-11 11:53:12.179Z: #16 8.473 Ready to continue?
2022-11-11 11:53:12.179Z: #16 8.473 No TTY, assuming you would say yes :)
2022-11-11 11:53:12.179Z: #16 8.473 
2022-11-11 11:53:12.179Z: #16 8.473 ~~> Checking for artifacts of previous installs
2022-11-11 11:53:12.180Z: #16 8.473 Before I try to install, I'll check for signs Nix already is or has
2022-11-11 11:53:12.180Z: #16 8.474 been installed on this system.
2022-11-11 11:53:12.180Z: #16 8.492 
2022-11-11 11:53:12.180Z: #16 8.492 ---- warning! ------------------------------------------------------------------
2022-11-11 11:53:12.180Z: #16 8.492 We did not detect systemd on your system. With a multi-user install
2022-11-11 11:53:12.180Z: #16 8.492 without systemd you will have to manually configure your init system to
2022-11-11 11:53:12.180Z: #16 8.492 launch the Nix daemon after installation.
2022-11-11 11:53:12.180Z: #16 8.492 
2022-11-11 11:53:12.180Z: #16 8.493 Do you want to proceed with a multi-user installation?
2022-11-11 11:53:12.180Z: #16 8.493 No TTY, assuming you would say yes :)
2022-11-11 11:53:12.180Z: #16 8.495 
2022-11-11 11:53:12.180Z: #16 8.495 ---- Nix config report ---------------------------------------------------------
2022-11-11 11:53:12.180Z: #16 8.495         Temp Dir:   /tmp/tmp.ytMQA2oKNG
2022-11-11 11:53:12.180Z: #16 8.495         Nix Root:   /nix
2022-11-11 11:53:12.180Z: #16 8.495      Build Users:   32
2022-11-11 11:53:12.180Z: #16 8.495   Build Group ID:   30000
2022-11-11 11:53:12.180Z: #16 8.495 Build Group Name:   nixbld
2022-11-11 11:53:12.180Z: #16 8.495 
2022-11-11 11:53:12.180Z: #16 8.495 build users:
2022-11-11 11:53:12.180Z: #16 8.496     Username:   UID
2022-11-11 11:53:12.180Z: #16 8.499      nixbld1:   30001
2022-11-11 11:53:12.350Z: #16 8.504      nixbld2:   30002
2022-11-11 11:53:12.350Z: #16 8.506      nixbld3:   30003
2022-11-11 11:53:12.350Z: #16 8.509      nixbld4:   30004
2022-11-11 11:53:12.350Z: #16 8.510      nixbld5:   30005
2022-11-11 11:53:12.350Z: #16 8.512      nixbld6:   30006
2022-11-11 11:53:12.350Z: #16 8.513      nixbld7:   30007
2022-11-11 11:53:12.350Z: #16 8.514      nixbld8:   30008
2022-11-11 11:53:12.350Z: #16 8.516      nixbld9:   30009
2022-11-11 11:53:12.350Z: #16 8.517      nixbld10:  30010
2022-11-11 11:53:12.350Z: #16 8.518      nixbld11:  30011
2022-11-11 11:53:12.350Z: #16 8.519      nixbld12:  30012
2022-11-11 11:53:12.350Z: #16 8.520      nixbld13:  30013
2022-11-11 11:53:12.350Z: #16 8.521      nixbld14:  30014
2022-11-11 11:53:12.350Z: #16 8.522      nixbld15:  30015
2022-11-11 11:53:12.350Z: #16 8.524      nixbld16:  30016
2022-11-11 11:53:12.350Z: 
2022-11-11 11:53:12.350Z: #16 8.525      nixbld17:  30017
2022-11-11 11:53:12.350Z: #16 8.526      nixbld18:  30018
2022-11-11 11:53:12.350Z: #16 8.527      nixbld19:  30019
2022-11-11 11:53:12.350Z: #16 8.528      nixbld20:  30020
2022-11-11 11:53:12.350Z: #16 8.530      nixbld21:  30021
2022-11-11 11:53:12.350Z: #16 8.531      nixbld22:  30022
2022-11-11 11:53:12.350Z: #16 8.532      nixbld23:  30023
2022-11-11 11:53:12.350Z: #16 8.533      nixbld24:  30024
2022-11-11 11:53:12.350Z: #16 8.534      nixbld25:  30025
2022-11-11 11:53:12.350Z: #16 8.535      nixbld26:  30026
2022-11-11 11:53:12.350Z: #16 8.536      nixbld27:  30027
2022-11-11 11:53:12.350Z: #16 8.538      nixbld28:  30028
2022-11-11 11:53:12.350Z: #16 8.539      nixbld29:  30029
2022-11-11 11:53:12.350Z: #16 8.540      nixbld30:  30030
2022-11-11 11:53:12.351Z: #16 8.541      nixbld31:  30031
2022-11-11 11:53:12.351Z: #16 8.542      nixbld32:  30032
2022-11-11 11:53:12.351Z: #16 8.542 
2022-11-11 11:53:12.351Z: #16 8.543 Ready to continue?
2022-11-11 11:53:12.351Z: #16 8.543 No TTY, assuming you would say yes :)
2022-11-11 11:53:12.351Z: #16 8.543 
2022-11-11 11:53:12.351Z: #16 8.544 ~~> Setting up the build group nixbld
2022-11-11 11:53:12.351Z: #16 8.544 
2022-11-11 11:53:12.351Z: #16 8.548 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:12.351Z: #16 8.548 I am executing:
2022-11-11 11:53:12.351Z: #16 8.548 
2022-11-11 11:53:12.351Z: #16 8.548     $ sudo groupadd -g 30000 --system nixbld
2022-11-11 11:53:12.351Z: #16 8.548 
2022-11-11 11:53:12.351Z: #16 8.548 Create the Nix build group, nixbld
2022-11-11 11:53:12.351Z: #16 8.548 
2022-11-11 11:53:12.488Z: #16 8.733             Created:    Yes
2022-11-11 11:53:12.488Z: #16 8.736 
2022-11-11 11:53:12.488Z: #16 8.736 ~~> Setting up the build user nixbld1
2022-11-11 11:53:12.488Z: #16 8.736 
2022-11-11 11:53:12.488Z: #16 8.741 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:12.488Z: #16 8.741 I am executing:
2022-11-11 11:53:12.488Z: #16 8.742 
2022-11-11 11:53:12.488Z: #16 8.742     $ sudo useradd --home-dir /var/empty --comment Nix build user 1 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30001 --password ! nixbld1
2022-11-11 11:53:12.489Z: #16 8.742 
2022-11-11 11:53:12.489Z: #16 8.742 Creating the Nix build user, nixbld1
2022-11-11 11:53:12.489Z: #16 8.742 
2022-11-11 11:53:12.740Z: #16 9.032            Created: Yes
2022-11-11 11:53:12.740Z: #16 9.032             Hidden: Yes
2022-11-11 11:53:12.740Z: #16 9.036     Home Directory: /var/empty
2022-11-11 11:53:12.740Z: #16 9.044 
2022-11-11 11:53:12.740Z: #16 9.045 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:12.741Z: #16 9.045 I am executing:
2022-11-11 11:53:12.741Z: #16 9.046 
2022-11-11 11:53:12.741Z: #16 9.046     $ sudo usermod --comment Nix build user 1 nixbld1
2022-11-11 11:53:12.741Z: #16 9.046 
2022-11-11 11:53:12.741Z: #16 9.046 in order to give nixbld1 a useful comment
2022-11-11 11:53:12.741Z: #16 9.046 
2022-11-11 11:53:12.741Z: #16 9.056 usermod: no changes
2022-11-11 11:53:12.906Z: #16 9.056               Note: Nix build user 1
2022-11-11 11:53:12.907Z: #16 9.059    Logins Disabled: Yes
2022-11-11 11:53:12.907Z: #16 9.073   Member of nixbld: Yes
2022-11-11 11:53:12.907Z: #16 9.077     PrimaryGroupID: 30000
2022-11-11 11:53:12.907Z: #16 9.079 
2022-11-11 11:53:12.907Z: #16 9.079 ~~> Setting up the build user nixbld2
2022-11-11 11:53:12.907Z: #16 9.079 
2022-11-11 11:53:12.907Z: #16 9.083 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:12.907Z: #16 9.083 I am executing:
2022-11-11 11:53:12.907Z: #16 9.083 
2022-11-11 11:53:12.907Z: #16 9.083     $ sudo useradd --home-dir /var/empty --comment Nix build user 2 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30002 --password ! nixbld2
2022-11-11 11:53:12.907Z: #16 9.083 
2022-11-11 11:53:12.907Z: #16 9.083 Creating the Nix build user, nixbld2
2022-11-11 11:53:12.907Z: #16 9.083 
2022-11-11 11:53:13.047Z: #16 9.220            Created: Yes
2022-11-11 11:53:13.047Z: #16 9.220             Hidden: Yes
2022-11-11 11:53:13.047Z: #16 9.224     Home Directory: /var/empty
2022-11-11 11:53:13.047Z: #16 9.232 
2022-11-11 11:53:13.047Z: #16 9.232 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.047Z: #16 9.232 I am executing:
2022-11-11 11:53:13.047Z: #16 9.232 
2022-11-11 11:53:13.047Z: #16 9.232     $ sudo usermod --comment Nix build user 2 nixbld2
2022-11-11 11:53:13.047Z: #16 9.232 
2022-11-11 11:53:13.047Z: #16 9.232 in order to give nixbld2 a useful comment
2022-11-11 11:53:13.047Z: #16 9.232 
2022-11-11 11:53:13.047Z: #16 9.242 usermod: no changes
2022-11-11 11:53:13.047Z: #16 9.242               Note: Nix build user 2
2022-11-11 11:53:13.047Z: #16 9.247    Logins Disabled: Yes
2022-11-11 11:53:13.047Z: #16 9.250   Member of nixbld: Yes
2022-11-11 11:53:13.047Z: #16 9.255     PrimaryGroupID: 30000
2022-11-11 11:53:13.047Z: #16 9.256 
2022-11-11 11:53:13.047Z: #16 9.256 ~~> Setting up the build user nixbld3
2022-11-11 11:53:13.047Z: #16 9.256 
2022-11-11 11:53:13.047Z: #16 9.261 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.047Z: #16 9.261 I am executing:
2022-11-11 11:53:13.047Z: #16 9.261 
2022-11-11 11:53:13.048Z: #16 9.261     $ sudo useradd --home-dir /var/empty --comment Nix build user 3 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30003 --password ! nixbld3
2022-11-11 11:53:13.048Z: #16 9.261 
2022-11-11 11:53:13.048Z: #16 9.261 Creating the Nix build user, nixbld3
2022-11-11 11:53:13.048Z: #16 9.261 
2022-11-11 11:53:13.191Z: #16 9.406            Created: Yes
2022-11-11 11:53:13.191Z: #16 9.407             Hidden: Yes
2022-11-11 11:53:13.191Z: 
2022-11-11 11:53:13.191Z: #16 9.410     Home Directory: /var/empty
2022-11-11 11:53:13.191Z: #16 9.418 
2022-11-11 11:53:13.191Z: #16 9.418 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.191Z: #16 9.418 I am executing:
2022-11-11 11:53:13.191Z: #16 9.418 
2022-11-11 11:53:13.191Z: #16 9.418     $ sudo usermod --comment Nix build user 3 nixbld3
2022-11-11 11:53:13.191Z: #16 9.418 
2022-11-11 11:53:13.191Z: #16 9.418 in order to give nixbld3 a useful comment
2022-11-11 11:53:13.191Z: #16 9.418 
2022-11-11 11:53:13.191Z: #16 9.421 usermod: no changes
2022-11-11 11:53:13.191Z: #16 9.422               Note: Nix build user 3
2022-11-11 11:53:13.191Z: #16 9.434    Logins Disabled: Yes
2022-11-11 11:53:13.191Z: #16 9.436   Member of nixbld: Yes
2022-11-11 11:53:13.191Z: #16 9.438     PrimaryGroupID: 30000
2022-11-11 11:53:13.191Z: #16 9.440 
2022-11-11 11:53:13.191Z: #16 9.441 ~~> Setting up the build user nixbld4
2022-11-11 11:53:13.191Z: #16 9.441 
2022-11-11 11:53:13.191Z: #16 9.446 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.191Z: #16 9.446 I am executing:
2022-11-11 11:53:13.191Z: #16 9.447 
2022-11-11 11:53:13.191Z: #16 9.447     $ sudo useradd --home-dir /var/empty --comment Nix build user 4 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30004 --password ! nixbld4
2022-11-11 11:53:13.191Z: #16 9.447 
2022-11-11 11:53:13.191Z: #16 9.447 Creating the Nix build user, nixbld4
2022-11-11 11:53:13.191Z: #16 9.447 
2022-11-11 11:53:13.303Z: #16 9.588            Created: Yes
2022-11-11 11:53:13.303Z: #16 9.589             Hidden: Yes
2022-11-11 11:53:13.303Z: #16 9.593     Home Directory: /var/empty
2022-11-11 11:53:13.303Z: #16 9.601 
2022-11-11 11:53:13.303Z: #16 9.601 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.303Z: #16 9.601 I am executing:
2022-11-11 11:53:13.303Z: #16 9.601 
2022-11-11 11:53:13.303Z: #16 9.601     $ sudo usermod --comment Nix build user 4 nixbld4
2022-11-11 11:53:13.303Z: #16 9.601 
2022-11-11 11:53:13.303Z: #16 9.601 in order to give nixbld4 a useful comment
2022-11-11 11:53:13.303Z: #16 9.601 
2022-11-11 11:53:13.303Z: #16 9.605 usermod: no changes
2022-11-11 11:53:13.303Z: #16 9.606               Note: Nix build user 4
2022-11-11 11:53:13.304Z: #16 9.613    Logins Disabled: Yes
2022-11-11 11:53:13.472Z: #16 9.617   Member of nixbld: Yes
2022-11-11 11:53:13.472Z: #16 9.619     PrimaryGroupID: 30000
2022-11-11 11:53:13.473Z: #16 9.621 
2022-11-11 11:53:13.473Z: #16 9.621 ~~> Setting up the build user nixbld5
2022-11-11 11:53:13.477Z: #16 9.621 
2022-11-11 11:53:13.478Z: #16 9.627 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.480Z: #16 9.627 I am executing:
2022-11-11 11:53:13.480Z: #16 9.627 
2022-11-11 11:53:13.480Z: #16 9.627     $ sudo useradd --home-dir /var/empty --comment Nix build user 5 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30005 --password ! nixbld5
2022-11-11 11:53:13.480Z: #16 9.627 
2022-11-11 11:53:13.480Z: #16 9.627 Creating the Nix build user, nixbld5
2022-11-11 11:53:13.480Z: #16 9.628 
2022-11-11 11:53:13.595Z: #16 9.770            Created: Yes
2022-11-11 11:53:13.595Z: #16 9.771             Hidden: Yes
2022-11-11 11:53:13.595Z: #16 9.777     Home Directory: /var/empty
2022-11-11 11:53:13.595Z: 
2022-11-11 11:53:13.595Z: #16 9.785 
2022-11-11 11:53:13.595Z: #16 9.785 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.595Z: #16 9.786 I am executing:
2022-11-11 11:53:13.595Z: #16 9.786 
2022-11-11 11:53:13.595Z: #16 9.786     $ sudo usermod --comment Nix build user 5 nixbld5
2022-11-11 11:53:13.595Z: #16 9.786 
2022-11-11 11:53:13.595Z: #16 9.786 in order to give nixbld5 a useful comment
2022-11-11 11:53:13.595Z: #16 9.786 
2022-11-11 11:53:13.595Z: #16 9.796 usermod: no changes
2022-11-11 11:53:13.595Z: #16 9.799               Note: Nix build user 5
2022-11-11 11:53:13.595Z: #16 9.800    Logins Disabled: Yes
2022-11-11 11:53:13.595Z: #16 9.808   Member of nixbld: Yes
2022-11-11 11:53:13.595Z: #16 9.810     PrimaryGroupID: 30000
2022-11-11 11:53:13.595Z: #16 9.812 
2022-11-11 11:53:13.595Z: #16 9.812 ~~> Setting up the build user nixbld6
2022-11-11 11:53:13.595Z: #16 9.812 
2022-11-11 11:53:13.595Z: #16 9.817 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.596Z: #16 9.817 I am executing:
2022-11-11 11:53:13.596Z: #16 9.817 
2022-11-11 11:53:13.596Z: #16 9.817     $ sudo useradd --home-dir /var/empty --comment Nix build user 6 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30006 --password ! nixbld6
2022-11-11 11:53:13.596Z: #16 9.817 
2022-11-11 11:53:13.596Z: #16 9.817 Creating the Nix build user, nixbld6
2022-11-11 11:53:13.596Z: #16 9.817 
2022-11-11 11:53:13.763Z: #16 9.961            Created: Yes
2022-11-11 11:53:13.763Z: #16 9.962             Hidden: Yes
2022-11-11 11:53:13.763Z: #16 9.967     Home Directory: /var/empty
2022-11-11 11:53:13.763Z: #16 9.974 
2022-11-11 11:53:13.763Z: #16 9.974 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.763Z: #16 9.975 I am executing:
2022-11-11 11:53:13.763Z: #16 9.975 
2022-11-11 11:53:13.763Z: #16 9.975     $ sudo usermod --comment Nix build user 6 nixbld6
2022-11-11 11:53:13.763Z: #16 9.975 
2022-11-11 11:53:13.763Z: #16 9.975 in order to give nixbld6 a useful comment
2022-11-11 11:53:13.763Z: #16 9.975 
2022-11-11 11:53:13.763Z: #16 9.979 usermod: no changes
2022-11-11 11:53:13.763Z: #16 9.980               Note: Nix build user 6
2022-11-11 11:53:13.763Z: #16 9.986    Logins Disabled: Yes
2022-11-11 11:53:13.763Z: #16 9.988   Member of nixbld: Yes
2022-11-11 11:53:13.763Z: #16 9.994     PrimaryGroupID: 30000
2022-11-11 11:53:13.763Z: #16 9.996 
2022-11-11 11:53:13.763Z: #16 9.996 ~~> Setting up the build user nixbld7
2022-11-11 11:53:13.763Z: #16 9.996 
2022-11-11 11:53:13.764Z: #16 10.00 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:13.764Z: #16 10.00 I am executing:
2022-11-11 11:53:13.764Z: #16 10.00 
2022-11-11 11:53:13.764Z: #16 10.00     $ sudo useradd --home-dir /var/empty --comment Nix build user 7 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30007 --password ! nixbld7
2022-11-11 11:53:13.764Z: #16 10.00 
2022-11-11 11:53:13.764Z: #16 10.00 Creating the Nix build user, nixbld7
2022-11-11 11:53:13.764Z: #16 10.00 
2022-11-11 11:53:13.987Z: #16 10.18            Created: Yes
2022-11-11 11:53:14.015Z: #16 10.18             Hidden: Yes
2022-11-11 11:53:14.015Z: #16 10.19     Home Directory: /var/empty
2022-11-11 11:53:14.015Z: #16 10.29 
2022-11-11 11:53:14.015Z: #16 10.29 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.015Z: #16 10.29 I am executing:
2022-11-11 11:53:14.015Z: #16 10.29 
2022-11-11 11:53:14.015Z: #16 10.29     $ sudo usermod --comment Nix build user 7 nixbld7
2022-11-11 11:53:14.015Z: #16 10.29 
2022-11-11 11:53:14.015Z: #16 10.29 in order to give nixbld7 a useful comment
2022-11-11 11:53:14.015Z: #16 10.29 
2022-11-11 11:53:14.128Z: #16 10.30 usermod: no changes
2022-11-11 11:53:14.128Z: #16 10.30               Note: Nix build user 7
2022-11-11 11:53:14.128Z: #16 10.31    Logins Disabled: Yes
2022-11-11 11:53:14.128Z: #16 10.31   Member of nixbld: Yes
2022-11-11 11:53:14.128Z: #16 10.32     PrimaryGroupID: 30000
2022-11-11 11:53:14.128Z: #16 10.32 
2022-11-11 11:53:14.128Z: #16 10.32 ~~> Setting up the build user nixbld8
2022-11-11 11:53:14.128Z: #16 10.32 
2022-11-11 11:53:14.128Z: #16 10.32 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.128Z: #16 10.32 I am executing:
2022-11-11 11:53:14.128Z: #16 10.32 
2022-11-11 11:53:14.128Z: #16 10.32     $ sudo useradd --home-dir /var/empty --comment Nix build user 8 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30008 --password ! nixbld8
2022-11-11 11:53:14.128Z: #16 10.32 
2022-11-11 11:53:14.128Z: #16 10.32 Creating the Nix build user, nixbld8
2022-11-11 11:53:14.128Z: #16 10.32 
2022-11-11 11:53:14.436Z: #16 10.64            Created: Yes
2022-11-11 11:53:14.436Z: #16 10.64             Hidden: Yes
2022-11-11 11:53:14.437Z: #16 10.65     Home Directory: /var/empty
2022-11-11 11:53:14.437Z: #16 10.66 
2022-11-11 11:53:14.437Z: #16 10.66 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.437Z: #16 10.66 I am executing:
2022-11-11 11:53:14.437Z: #16 10.66 
2022-11-11 11:53:14.437Z: #16 10.66     $ sudo usermod --comment Nix build user 8 nixbld8
2022-11-11 11:53:14.437Z: #16 10.66 
2022-11-11 11:53:14.437Z: #16 10.66 in order to give nixbld8 a useful comment
2022-11-11 11:53:14.437Z: #16 10.66 
2022-11-11 11:53:14.437Z: #16 10.66 usermod: no changes
2022-11-11 11:53:14.437Z: #16 10.67               Note: Nix build user 8
2022-11-11 11:53:14.437Z: #16 10.67    Logins Disabled: Yes
2022-11-11 11:53:14.437Z: #16 10.67   Member of nixbld: Yes
2022-11-11 11:53:14.437Z: #16 10.68     PrimaryGroupID: 30000
2022-11-11 11:53:14.437Z: #16 10.68 
2022-11-11 11:53:14.437Z: #16 10.68 ~~> Setting up the build user nixbld9
2022-11-11 11:53:14.437Z: #16 10.68 
2022-11-11 11:53:14.437Z: #16 10.69 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.437Z: #16 10.69 I am executing:
2022-11-11 11:53:14.438Z: #16 10.69 
2022-11-11 11:53:14.438Z: #16 10.69     $ sudo useradd --home-dir /var/empty --comment Nix build user 9 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30009 --password ! nixbld9
2022-11-11 11:53:14.438Z: #16 10.69 
2022-11-11 11:53:14.438Z: #16 10.69 Creating the Nix build user, nixbld9
2022-11-11 11:53:14.438Z: #16 10.69 
2022-11-11 11:53:14.546Z: #16 10.83            Created: Yes
2022-11-11 11:53:14.546Z: #16 10.84             Hidden: Yes
2022-11-11 11:53:14.546Z: #16 10.84     Home Directory: /var/empty
2022-11-11 11:53:14.546Z: #16 10.85 
2022-11-11 11:53:14.695Z: #16 10.85 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.695Z: #16 10.85 I am executing:
2022-11-11 11:53:14.695Z: #16 10.85 
2022-11-11 11:53:14.695Z: #16 10.85     $ sudo usermod --comment Nix build user 9 nixbld9
2022-11-11 11:53:14.695Z: #16 10.85 
2022-11-11 11:53:14.695Z: #16 10.85 in order to give nixbld9 a useful comment
2022-11-11 11:53:14.695Z: #16 10.85 
2022-11-11 11:53:14.695Z: #16 10.85 usermod: no changes
2022-11-11 11:53:14.695Z: #16 10.85               Note: Nix build user 9
2022-11-11 11:53:14.695Z: 
2022-11-11 11:53:14.695Z: #16 10.86    Logins Disabled: Yes
2022-11-11 11:53:14.695Z: #16 10.86   Member of nixbld: Yes
2022-11-11 11:53:14.695Z: #16 10.87     PrimaryGroupID: 30000
2022-11-11 11:53:14.695Z: #16 10.87 
2022-11-11 11:53:14.695Z: #16 10.87 ~~> Setting up the build user nixbld10
2022-11-11 11:53:14.695Z: #16 10.87 
2022-11-11 11:53:14.695Z: #16 10.87 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.695Z: #16 10.87 I am executing:
2022-11-11 11:53:14.695Z: #16 10.87 
2022-11-11 11:53:14.695Z: #16 10.87     $ sudo useradd --home-dir /var/empty --comment Nix build user 10 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30010 --password ! nixbld10
2022-11-11 11:53:14.695Z: #16 10.87 
2022-11-11 11:53:14.695Z: #16 10.87 Creating the Nix build user, nixbld10
2022-11-11 11:53:14.695Z: #16 10.87 
2022-11-11 11:53:14.695Z: 
2022-11-11 11:53:14.831Z: #16 11.01            Created: Yes
2022-11-11 11:53:14.831Z: #16 11.01             Hidden: Yes
2022-11-11 11:53:14.831Z: #16 11.02     Home Directory: /var/empty
2022-11-11 11:53:14.831Z: #16 11.03 
2022-11-11 11:53:14.831Z: #16 11.03 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.831Z: #16 11.03 I am executing:
2022-11-11 11:53:14.831Z: #16 11.03 
2022-11-11 11:53:14.831Z: #16 11.03     $ sudo usermod --comment Nix build user 10 nixbld10
2022-11-11 11:53:14.831Z: #16 11.03 
2022-11-11 11:53:14.831Z: #16 11.03 in order to give nixbld10 a useful comment
2022-11-11 11:53:14.831Z: #16 11.03 
2022-11-11 11:53:14.831Z: #16 11.03 usermod: no changes
2022-11-11 11:53:14.832Z: #16 11.03               Note: Nix build user 10
2022-11-11 11:53:14.832Z: #16 11.04    Logins Disabled: Yes
2022-11-11 11:53:14.832Z: #16 11.04   Member of nixbld: Yes
2022-11-11 11:53:14.832Z: #16 11.05     PrimaryGroupID: 30000
2022-11-11 11:53:14.832Z: #16 11.05 
2022-11-11 11:53:14.832Z: #16 11.05 ~~> Setting up the build user nixbld11
2022-11-11 11:53:14.832Z: #16 11.05 
2022-11-11 11:53:14.832Z: #16 11.06 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:14.832Z: #16 11.06 I am executing:
2022-11-11 11:53:14.832Z: #16 11.06 
2022-11-11 11:53:14.832Z: #16 11.06     $ sudo useradd --home-dir /var/empty --comment Nix build user 11 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30011 --password ! nixbld11
2022-11-11 11:53:14.832Z: #16 11.06 
2022-11-11 11:53:14.832Z: #16 11.06 Creating the Nix build user, nixbld11
2022-11-11 11:53:14.832Z: #16 11.06 
2022-11-11 11:53:14.999Z: #16 11.20            Created: Yes
2022-11-11 11:53:14.999Z: #16 11.20             Hidden: Yes
2022-11-11 11:53:14.999Z: #16 11.21     Home Directory: /var/empty
2022-11-11 11:53:14.999Z: #16 11.21 
2022-11-11 11:53:14.999Z: #16 11.21 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.000Z: #16 11.22 I am executing:
2022-11-11 11:53:15.000Z: #16 11.22 
2022-11-11 11:53:15.000Z: #16 11.22     $ sudo usermod --comment Nix build user 11 nixbld11
2022-11-11 11:53:15.000Z: #16 11.22 
2022-11-11 11:53:15.000Z: #16 11.22 in order to give nixbld11 a useful comment
2022-11-11 11:53:15.000Z: #16 11.22 
2022-11-11 11:53:15.000Z: #16 11.22 usermod: no changes
2022-11-11 11:53:15.000Z: #16 11.22               Note: Nix build user 11
2022-11-11 11:53:15.000Z: #16 11.23    Logins Disabled: Yes
2022-11-11 11:53:15.000Z: #16 11.23   Member of nixbld: Yes
2022-11-11 11:53:15.000Z: #16 11.23     PrimaryGroupID: 30000
2022-11-11 11:53:15.000Z: #16 11.24 
2022-11-11 11:53:15.000Z: #16 11.24 ~~> Setting up the build user nixbld12
2022-11-11 11:53:15.000Z: #16 11.24 
2022-11-11 11:53:15.000Z: #16 11.24 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.000Z: #16 11.24 I am executing:
2022-11-11 11:53:15.000Z: #16 11.24 
2022-11-11 11:53:15.000Z: #16 11.24     $ sudo useradd --home-dir /var/empty --comment Nix build user 12 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30012 --password ! nixbld12
2022-11-11 11:53:15.000Z: #16 11.24 
2022-11-11 11:53:15.000Z: #16 11.24 Creating the Nix build user, nixbld12
2022-11-11 11:53:15.000Z: #16 11.24 
2022-11-11 11:53:15.082Z: #16 11.39            Created: Yes
2022-11-11 11:53:15.083Z: #16 11.39             Hidden: Yes
2022-11-11 11:53:15.083Z: #16 11.40     Home Directory: /var/empty
2022-11-11 11:53:15.083Z: #16 11.40 
2022-11-11 11:53:15.251Z: #16 11.40 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.251Z: #16 11.40 I am executing:
2022-11-11 11:53:15.251Z: #16 11.40 
2022-11-11 11:53:15.251Z: #16 11.40     $ sudo usermod --comment Nix build user 12 nixbld12
2022-11-11 11:53:15.251Z: #16 11.40 
2022-11-11 11:53:15.251Z: #16 11.40 in order to give nixbld12 a useful comment
2022-11-11 11:53:15.251Z: #16 11.40 
2022-11-11 11:53:15.251Z: 
2022-11-11 11:53:15.252Z: #16 11.42 usermod: no changes
2022-11-11 11:53:15.252Z: #16 11.42               Note: Nix build user 12
2022-11-11 11:53:15.252Z: #16 11.42    Logins Disabled: Yes
2022-11-11 11:53:15.252Z: #16 11.43   Member of nixbld: Yes
2022-11-11 11:53:15.252Z: #16 11.43     PrimaryGroupID: 30000
2022-11-11 11:53:15.252Z: #16 11.43 
2022-11-11 11:53:15.252Z: #16 11.43 ~~> Setting up the build user nixbld13
2022-11-11 11:53:15.252Z: #16 11.43 
2022-11-11 11:53:15.252Z: #16 11.44 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.252Z: #16 11.44 I am executing:
2022-11-11 11:53:15.252Z: #16 11.44 
2022-11-11 11:53:15.252Z: #16 11.44     $ sudo useradd --home-dir /var/empty --comment Nix build user 13 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30013 --password ! nixbld13
2022-11-11 11:53:15.252Z: #16 11.44 
2022-11-11 11:53:15.252Z: #16 11.44 Creating the Nix build user, nixbld13
2022-11-11 11:53:15.252Z: #16 11.44 
2022-11-11 11:53:15.391Z: #16 11.59            Created: Yes
2022-11-11 11:53:15.391Z: #16 11.60             Hidden: Yes
2022-11-11 11:53:15.392Z: #16 11.60     Home Directory: /var/empty
2022-11-11 11:53:15.392Z: #16 11.61 
2022-11-11 11:53:15.392Z: #16 11.61 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.392Z: #16 11.61 I am executing:
2022-11-11 11:53:15.392Z: #16 11.61 
2022-11-11 11:53:15.392Z: #16 11.61     $ sudo usermod --comment Nix build user 13 nixbld13
2022-11-11 11:53:15.392Z: #16 11.61 
2022-11-11 11:53:15.392Z: #16 11.61 in order to give nixbld13 a useful comment
2022-11-11 11:53:15.392Z: #16 11.61 
2022-11-11 11:53:15.392Z: #16 11.61 usermod: no changes
2022-11-11 11:53:15.392Z: #16 11.61               Note: Nix build user 13
2022-11-11 11:53:15.392Z: #16 11.62    Logins Disabled: Yes
2022-11-11 11:53:15.392Z: #16 11.62   Member of nixbld: Yes
2022-11-11 11:53:15.392Z: #16 11.63     PrimaryGroupID: 30000
2022-11-11 11:53:15.392Z: #16 11.63 
2022-11-11 11:53:15.392Z: #16 11.63 ~~> Setting up the build user nixbld14
2022-11-11 11:53:15.392Z: #16 11.63 
2022-11-11 11:53:15.392Z: #16 11.63 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.392Z: #16 11.63 I am executing:
2022-11-11 11:53:15.392Z: #16 11.63 
2022-11-11 11:53:15.392Z: #16 11.63     $ sudo useradd --home-dir /var/empty --comment Nix build user 14 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30014 --password ! nixbld14
2022-11-11 11:53:15.392Z: #16 11.63 
2022-11-11 11:53:15.392Z: #16 11.63 Creating the Nix build user, nixbld14
2022-11-11 11:53:15.392Z: #16 11.63 
2022-11-11 11:53:15.502Z: #16 11.79            Created: Yes
2022-11-11 11:53:15.502Z: #16 11.79             Hidden: Yes
2022-11-11 11:53:15.502Z: #16 11.79     Home Directory: /var/empty
2022-11-11 11:53:15.502Z: #16 11.80 
2022-11-11 11:53:15.502Z: #16 11.80 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.503Z: #16 11.80 I am executing:
2022-11-11 11:53:15.503Z: #16 11.80 
2022-11-11 11:53:15.503Z: #16 11.80     $ sudo usermod --comment Nix build user 14 nixbld14
2022-11-11 11:53:15.503Z: #16 11.80 
2022-11-11 11:53:15.503Z: #16 11.80 in order to give nixbld14 a useful comment
2022-11-11 11:53:15.503Z: #16 11.80 
2022-11-11 11:53:15.503Z: #16 11.81 usermod: no changes
2022-11-11 11:53:15.671Z: #16 11.81               Note: Nix build user 14
2022-11-11 11:53:15.671Z: #16 11.82    Logins Disabled: Yes
2022-11-11 11:53:15.671Z: #16 11.83   Member of nixbld: Yes
2022-11-11 11:53:15.671Z: #16 11.83     PrimaryGroupID: 30000
2022-11-11 11:53:15.671Z: #16 11.83 
2022-11-11 11:53:15.671Z: #16 11.83 ~~> Setting up the build user nixbld15
2022-11-11 11:53:15.671Z: #16 11.83 
2022-11-11 11:53:15.671Z: #16 11.84 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.671Z: 
2022-11-11 11:53:15.671Z: #16 11.84 I am executing:
2022-11-11 11:53:15.671Z: #16 11.84 
2022-11-11 11:53:15.671Z: #16 11.84     $ sudo useradd --home-dir /var/empty --comment Nix build user 15 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30015 --password ! nixbld15
2022-11-11 11:53:15.671Z: #16 11.84 
2022-11-11 11:53:15.671Z: #16 11.84 Creating the Nix build user, nixbld15
2022-11-11 11:53:15.671Z: #16 11.84 
2022-11-11 11:53:15.810Z: #16 11.98            Created: Yes
2022-11-11 11:53:15.810Z: #16 11.99             Hidden:
2022-11-11 11:53:15.810Z:   
2022-11-11 11:53:15.810Z: Yes
2022-11-11 11:53:15.810Z: 
2022-11-11 11:53:15.810Z: #16 11.99     Home Directory:
2022-11-11 11:53:15.810Z:   
2022-11-11 11:53:15.810Z: /var/empty
2022-11-11 11:53:15.810Z: 
2022-11-11 11:53:15.811Z: #16 12.00 
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 I am executing:
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00     $ sudo usermod --comment Nix build user 15 nixbld15
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 in order to give nixbld15 a useful comment
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.00 
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.01 usermod: no changes
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.01               Note:
2022-11-11 11:53:15.811Z:   
2022-11-11 11:53:15.811Z: Nix build user 15
2022-11-11 11:53:15.811Z: 
2022-11-11 11:53:15.811Z: #16 12.02    Logins Disabled:
2022-11-11 11:53:15.811Z:   
2022-11-11 11:53:15.811Z: Yes
2022-11-11 11:53:15.812Z: 
2022-11-11 11:53:15.812Z: #16 12.02   Member of nixbld:
2022-11-11 11:53:15.812Z:   
2022-11-11 11:53:15.812Z: Yes
2022-11-11 11:53:15.812Z: 
2022-11-11 11:53:15.812Z: #16 12.02     PrimaryGroupID:
2022-11-11 11:53:15.812Z:   
2022-11-11 11:53:15.812Z: 30000
2022-11-11 11:53:15.812Z: 
2022-11-11 11:53:15.812Z: #16 12.03 
2022-11-11 11:53:15.812Z: #16 12.03 ~~> Setting up the build user nixbld16
2022-11-11 11:53:15.812Z: #16 12.03 
2022-11-11 11:53:15.812Z: #16 12.03 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.812Z: #16 12.03 I am executing:
2022-11-11 11:53:15.812Z: #16 12.03 
2022-11-11 11:53:15.812Z: #16 12.03     $ sudo useradd --home-dir /var/empty --comment Nix build user 16 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30016 --password ! nixbld16
2022-11-11 11:53:15.812Z: #16 12.03 
2022-11-11 11:53:15.812Z: #16 12.03 Creating the Nix build user, nixbld16
2022-11-11 11:53:15.812Z: #16 12.03 
2022-11-11 11:53:15.923Z: #16 12.18            Created: Yes
2022-11-11 11:53:15.923Z: #16 12.18             Hidden: Yes
2022-11-11 11:53:15.923Z: #16 12.19     Home Directory: /var/empty
2022-11-11 11:53:15.923Z: #16 12.20 
2022-11-11 11:53:15.923Z: #16 12.20 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:15.923Z: #16 12.20 I am executing:
2022-11-11 11:53:15.923Z: #16 12.20 
2022-11-11 11:53:15.923Z: #16 12.20     $ sudo usermod --comment Nix build user 16 nixbld16
2022-11-11 11:53:15.923Z: #16 12.20 
2022-11-11 11:53:15.923Z: #16 12.20 in order to give nixbld16 a useful comment
2022-11-11 11:53:15.923Z: #16 12.20 
2022-11-11 11:53:15.923Z: #16 12.20 usermod: no changes
2022-11-11 11:53:15.923Z: #16 12.20               Note: Nix build user 16
2022-11-11 11:53:15.923Z: #16 12.21    Logins Disabled: Yes
2022-11-11 11:53:15.923Z: #16 12.21   Member of nixbld: Yes
2022-11-11 11:53:15.923Z: #16 12.22     PrimaryGroupID: 30000
2022-11-11 11:53:15.923Z: #16 12.22 
2022-11-11 11:53:16.063Z: #16 12.22 ~~> Setting up the build user nixbld17
2022-11-11 11:53:16.063Z: #16 12.22 
2022-11-11 11:53:16.063Z: #16 12.22 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.063Z: #16 12.22 I am executing:
2022-11-11 11:53:16.063Z: #16 12.22 
2022-11-11 11:53:16.063Z: #16 12.22     $ sudo useradd --home-dir /var/empty --comment Nix build user 17 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30017 --password ! nixbld17
2022-11-11 11:53:16.063Z: #16 12.22 
2022-11-11 11:53:16.063Z: #16 12.22 Creating the Nix build user, nixbld17
2022-11-11 11:53:16.063Z: #16 12.22 
2022-11-11 11:53:16.203Z: #16 12.37            Created: Yes
2022-11-11 11:53:16.203Z: #16 12.37             Hidden: Yes
2022-11-11 11:53:16.203Z: #16 12.37     Home Directory: /var/empty
2022-11-11 11:53:16.203Z: #16 12.38 
2022-11-11 11:53:16.203Z: #16 12.38 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.204Z: #16 12.38 I am executing:
2022-11-11 11:53:16.204Z: #16 12.38 
2022-11-11 11:53:16.204Z: #16 12.38     $ sudo usermod --comment Nix build user 17 nixbld17
2022-11-11 11:53:16.204Z: #16 12.38 
2022-11-11 11:53:16.204Z: #16 12.38 in order to give nixbld17 a useful comment
2022-11-11 11:53:16.204Z: #16 12.38 
2022-11-11 11:53:16.204Z: #16 12.39 usermod: no changes
2022-11-11 11:53:16.204Z: #16 12.39               Note: Nix build user 17
2022-11-11 11:53:16.204Z: #16 12.40    Logins Disabled: Yes
2022-11-11 11:53:16.204Z: #16 12.40   Member of nixbld: Yes
2022-11-11 11:53:16.204Z: #16 12.41     PrimaryGroupID: 30000
2022-11-11 11:53:16.204Z: #16 12.41 
2022-11-11 11:53:16.204Z: #16 12.41 ~~> Setting up the build user nixbld18
2022-11-11 11:53:16.204Z: #16 12.41 
2022-11-11 11:53:16.204Z: #16 12.41 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.204Z: #16 12.41 I am executing:
2022-11-11 11:53:16.205Z: #16 12.41 
2022-11-11 11:53:16.205Z: #16 12.41     $ sudo useradd --home-dir /var/empty --comment Nix build user 18 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30018 --password ! nixbld18
2022-11-11 11:53:16.205Z: #16 12.41 
2022-11-11 11:53:16.205Z: #16 12.41 Creating the Nix build user, nixbld18
2022-11-11 11:53:16.205Z: #16 12.41 
2022-11-11 11:53:16.371Z: #16 12.56            Created: Yes
2022-11-11 11:53:16.371Z: #16 12.56             Hidden: Yes
2022-11-11 11:53:16.371Z: #16 12.56     Home Directory: /var/empty
2022-11-11 11:53:16.371Z: #16 12.57 
2022-11-11 11:53:16.371Z: #16 12.57 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.371Z: #16 12.57 I am executing:
2022-11-11 11:53:16.371Z: #16 12.57 
2022-11-11 11:53:16.371Z: #16 12.57     $ sudo usermod --comment Nix build user 18 nixbld18
2022-11-11 11:53:16.371Z: #16 12.57 
2022-11-11 11:53:16.371Z: #16 12.57 in order to give nixbld18 a useful comment
2022-11-11 11:53:16.371Z: #16 12.57 
2022-11-11 11:53:16.371Z: #16 12.58 usermod: no changes
2022-11-11 11:53:16.371Z: #16 12.58               Note: Nix build user 18
2022-11-11 11:53:16.371Z: #16 12.59    Logins Disabled: Yes
2022-11-11 11:53:16.371Z: #16 12.59   Member of nixbld: Yes
2022-11-11 11:53:16.371Z: #16 12.60     PrimaryGroupID: 30000
2022-11-11 11:53:16.371Z: #16 12.60 
2022-11-11 11:53:16.371Z: #16 12.60 ~~> Setting up the build user nixbld19
2022-11-11 11:53:16.371Z: #16 12.60 
2022-11-11 11:53:16.371Z: #16 12.60 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.371Z: #16 12.60 I am executing:
2022-11-11 11:53:16.371Z: #16 12.60 
2022-11-11 11:53:16.371Z: #16 12.60     $ sudo useradd --home-dir /var/empty --comment Nix build user 19 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30019 --password ! nixbld19
2022-11-11 11:53:16.371Z: #16 12.60 
2022-11-11 11:53:16.371Z: #16 12.60 Creating the Nix build user, nixbld19
2022-11-11 11:53:16.371Z: #16 12.60 
2022-11-11 11:53:16.458Z: #16 12.75            Created: Yes
2022-11-11 11:53:16.460Z: #16 12.75             Hidden: Yes
2022-11-11 11:53:16.460Z: #16 12.75     Home Directory: /var/empty
2022-11-11 11:53:16.460Z: #16 12.76 
2022-11-11 11:53:16.460Z: #16 12.76 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.460Z: #16 12.76 I am executing:
2022-11-11 11:53:16.460Z: #16 12.76 
2022-11-11 11:53:16.460Z: #16 12.76     $ sudo usermod --comment Nix build user 19 nixbld19
2022-11-11 11:53:16.460Z: #16 12.76 
2022-11-11 11:53:16.460Z: #16 12.76 in order to give nixbld19 a useful comment
2022-11-11 11:53:16.460Z: #16 12.76 
2022-11-11 11:53:16.460Z: #16 12.77 usermod: no changes
2022-11-11 11:53:16.460Z: #16 12.77               Note: Nix build user 19
2022-11-11 11:53:16.460Z: #16 12.78    Logins Disabled: Yes
2022-11-11 11:53:16.629Z: #16 12.78   Member of nixbld: Yes
2022-11-11 11:53:16.629Z: #16 12.78     PrimaryGroupID: 30000
2022-11-11 11:53:16.629Z: #16 12.79 
2022-11-11 11:53:16.630Z: #16 12.79 ~~> Setting up the build user nixbld20
2022-11-11 11:53:16.630Z: #16 12.79 
2022-11-11 11:53:16.630Z: #16 12.79 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.630Z: #16 12.79 I am executing:
2022-11-11 11:53:16.630Z: #16 12.79 
2022-11-11 11:53:16.631Z: #16 12.79     $ sudo useradd --home-dir /var/empty --comment Nix build user 20 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30020 --password ! nixbld20
2022-11-11 11:53:16.631Z: #16 12.79 
2022-11-11 11:53:16.631Z: #16 12.79 Creating the Nix build user, nixbld20
2022-11-11 11:53:16.631Z: #16 12.79 
2022-11-11 11:53:16.769Z: #16 12.94            Created: Yes
2022-11-11 11:53:16.769Z: #16 12.94             Hidden: Yes
2022-11-11 11:53:16.769Z: #16 12.95     Home Directory: /var/empty
2022-11-11 11:53:16.769Z: #16 12.96 
2022-11-11 11:53:16.769Z: #16 12.96 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.769Z: #16 12.96 I am executing:
2022-11-11 11:53:16.769Z: #16 12.96 
2022-11-11 11:53:16.769Z: #16 12.96     $ sudo usermod --comment Nix build user 20 nixbld20
2022-11-11 11:53:16.769Z: #16 12.96 
2022-11-11 11:53:16.770Z: #16 12.96 in order to give nixbld20 a useful comment
2022-11-11 11:53:16.770Z: #16 12.96 
2022-11-11 11:53:16.770Z: #16 12.96 usermod: no changes
2022-11-11 11:53:16.770Z: #16 12.96               Note: Nix build user 20
2022-11-11 11:53:16.770Z: #16 12.97    Logins Disabled: Yes
2022-11-11 11:53:16.770Z: #16 12.97   Member of nixbld: Yes
2022-11-11 11:53:16.770Z: #16 12.98     PrimaryGroupID: 30000
2022-11-11 11:53:16.770Z: #16 12.98 
2022-11-11 11:53:16.770Z: #16 12.98 ~~> Setting up the build user nixbld21
2022-11-11 11:53:16.770Z: #16 12.98 
2022-11-11 11:53:16.770Z: #16 12.98 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.770Z: #16 12.98 I am executing:
2022-11-11 11:53:16.770Z: #16 12.98 
2022-11-11 11:53:16.770Z: #16 12.98     $ sudo useradd --home-dir /var/empty --comment Nix build user 21 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30021 --password ! nixbld21
2022-11-11 11:53:16.770Z: #16 12.98 
2022-11-11 11:53:16.770Z: #16 12.98 Creating the Nix build user, nixbld21
2022-11-11 11:53:16.770Z: #16 12.98 
2022-11-11 11:53:16.907Z: #16 13.13            Created: Yes
2022-11-11 11:53:16.907Z: #16 13.14             Hidden: Yes
2022-11-11 11:53:16.934Z: #16 13.14     Home Directory: /var/empty
2022-11-11 11:53:16.935Z: #16 13.15 
2022-11-11 11:53:16.935Z: #16 13.15 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.935Z: #16 13.15 I am executing:
2022-11-11 11:53:16.935Z: #16 13.15 
2022-11-11 11:53:16.935Z: #16 13.15     $ sudo usermod --comment Nix build user 21 nixbld21
2022-11-11 11:53:16.935Z: #16 13.15 
2022-11-11 11:53:16.935Z: #16 13.15 in order to give nixbld21 a useful comment
2022-11-11 11:53:16.935Z: #16 13.15 
2022-11-11 11:53:16.935Z: #16 13.16 usermod: no changes
2022-11-11 11:53:16.935Z: #16 13.16               Note: Nix build user 21
2022-11-11 11:53:16.935Z: #16 13.16    Logins Disabled: Yes
2022-11-11 11:53:16.935Z: #16 13.17   Member of nixbld: Yes
2022-11-11 11:53:16.935Z: #16 13.17     PrimaryGroupID: 30000
2022-11-11 11:53:16.935Z: #16 13.17 
2022-11-11 11:53:16.935Z: #16 13.17 ~~> Setting up the build user nixbld22
2022-11-11 11:53:16.935Z: #16 13.17 
2022-11-11 11:53:16.935Z: #16 13.18 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:16.935Z: #16 13.18 I am executing:
2022-11-11 11:53:16.935Z: #16 13.18 
2022-11-11 11:53:16.936Z: #16 13.18     $ sudo useradd --home-dir /var/empty --comment Nix build user 22 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30022 --password ! nixbld22
2022-11-11 11:53:16.936Z: #16 13.18 
2022-11-11 11:53:16.936Z: #16 13.18 Creating the Nix build user, nixbld22
2022-11-11 11:53:16.936Z: #16 13.18 
2022-11-11 11:53:17.023Z: #16 13.32            Created: Yes
2022-11-11 11:53:17.023Z: #16 13.33             Hidden: Yes
2022-11-11 11:53:17.023Z: #16 13.33     Home Directory: /var/empty
2022-11-11 11:53:17.163Z: #16 13.34 
2022-11-11 11:53:17.163Z: #16 13.34 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.163Z: #16 13.34 I am executing:
2022-11-11 11:53:17.163Z: #16 13.34 
2022-11-11 11:53:17.163Z: #16 13.34     $ sudo usermod --comment Nix build user 22 nixbld22
2022-11-11 11:53:17.163Z: #16 13.34 
2022-11-11 11:53:17.163Z: 
2022-11-11 11:53:17.163Z: #16 13.34 in order to give nixbld22 a useful comment
2022-11-11 11:53:17.163Z: #16 13.34 
2022-11-11 11:53:17.163Z: #16 13.34 usermod: no changes
2022-11-11 11:53:17.163Z: #16 13.34               Note: Nix build user 22
2022-11-11 11:53:17.163Z: #16 13.35    Logins Disabled: Yes
2022-11-11 11:53:17.163Z: #16 13.36   Member of nixbld: Yes
2022-11-11 11:53:17.163Z: #16 13.36     PrimaryGroupID: 30000
2022-11-11 11:53:17.163Z: #16 13.36 
2022-11-11 11:53:17.163Z: #16 13.36 ~~> Setting up the build user nixbld23
2022-11-11 11:53:17.163Z: #16 13.36 
2022-11-11 11:53:17.163Z: #16 13.36 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.163Z: 
2022-11-11 11:53:17.164Z: #16 13.37 I am executing:
2022-11-11 11:53:17.164Z: 
2022-11-11 11:53:17.164Z: #16 13.37 
2022-11-11 11:53:17.164Z: 
2022-11-11 11:53:17.164Z: #16 13.37     $ sudo useradd --home-dir /var/empty --comment Nix build user 23 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30023 --password ! nixbld23
2022-11-11 11:53:17.164Z: 
2022-11-11 11:53:17.164Z: #16 13.37 
2022-11-11 11:53:17.164Z: #16 13.37 Creating the Nix build user, nixbld23
2022-11-11 11:53:17.164Z: #16 13.37 
2022-11-11 11:53:17.331Z: #16 13.51            Created: Yes
2022-11-11 11:53:17.331Z: 
2022-11-11 11:53:17.331Z: #16 13.51             Hidden: Yes
2022-11-11 11:53:17.331Z: #16 13.52     Home Directory: /var/empty
2022-11-11 11:53:17.331Z: #16 13.53 
2022-11-11 11:53:17.331Z: #16 13.53 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.331Z: #16 13.53 I am executing:
2022-11-11 11:53:17.331Z: #16 13.53 
2022-11-11 11:53:17.331Z: #16 13.53     $ sudo usermod --comment Nix build user 23 nixbld23
2022-11-11 11:53:17.331Z: #16 13.53 
2022-11-11 11:53:17.331Z: #16 13.53 in order to give nixbld23 a useful comment
2022-11-11 11:53:17.331Z: #16 13.53 
2022-11-11 11:53:17.331Z: #16 13.54 usermod: no changes
2022-11-11 11:53:17.331Z: #16 13.54               Note: Nix build user 23
2022-11-11 11:53:17.331Z: #16 13.54    Logins Disabled: Yes
2022-11-11 11:53:17.331Z: #16 13.55   Member of nixbld: Yes
2022-11-11 11:53:17.331Z: #16 13.55     PrimaryGroupID: 30000
2022-11-11 11:53:17.331Z: #16 13.55 
2022-11-11 11:53:17.331Z: #16 13.55 ~~> Setting up the build user nixbld24
2022-11-11 11:53:17.332Z: #16 13.55 
2022-11-11 11:53:17.332Z: #16 13.56 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.332Z: #16 13.56 I am executing:
2022-11-11 11:53:17.332Z: #16 13.56 
2022-11-11 11:53:17.332Z: #16 13.56     $ sudo useradd --home-dir /var/empty --comment Nix build user 24 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30024 --password ! nixbld24
2022-11-11 11:53:17.332Z: #16 13.56 
2022-11-11 11:53:17.332Z: #16 13.56 Creating the Nix build user, nixbld24
2022-11-11 11:53:17.332Z: #16 13.56 
2022-11-11 11:53:17.416Z: #16 13.72            Created: Yes
2022-11-11 11:53:17.416Z: #16 13.72             Hidden: Yes
2022-11-11 11:53:17.416Z: #16 13.72     Home Directory: /var/empty
2022-11-11 11:53:17.416Z: #16 13.73 
2022-11-11 11:53:17.416Z: #16 13.73 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.416Z: #16 13.73 I am executing:
2022-11-11 11:53:17.416Z: #16 13.73 
2022-11-11 11:53:17.416Z: #16 13.73     $ sudo usermod --comment Nix build user 24 nixbld24
2022-11-11 11:53:17.416Z: #16 13.73 
2022-11-11 11:53:17.416Z: #16 13.73 in order to give nixbld24 a useful comment
2022-11-11 11:53:17.416Z: #16 13.73 
2022-11-11 11:53:17.416Z: #16 13.74 usermod: no changes
2022-11-11 11:53:17.584Z: #16 13.74               Note: Nix build user 24
2022-11-11 11:53:17.585Z: #16 13.74    Logins Disabled: Yes
2022-11-11 11:53:17.585Z: #16 13.75   Member of nixbld: Yes
2022-11-11 11:53:17.585Z: #16 13.75     PrimaryGroupID: 30000
2022-11-11 11:53:17.586Z: #16 13.75 
2022-11-11 11:53:17.586Z: #16 13.75 ~~> Setting up the build user nixbld25
2022-11-11 11:53:17.586Z: 
2022-11-11 11:53:17.587Z: #16 13.75 
2022-11-11 11:53:17.587Z: #16 13.76 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.587Z: #16 13.76 I am executing:
2022-11-11 11:53:17.587Z: #16 13.76 
2022-11-11 11:53:17.587Z: #16 13.76     $ sudo useradd --home-dir /var/empty --comment Nix build user 25 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30025 --password ! nixbld25
2022-11-11 11:53:17.588Z: #16 13.76 
2022-11-11 11:53:17.588Z: #16 13.76 Creating the Nix build user, nixbld25
2022-11-11 11:53:17.589Z: #16 13.76 
2022-11-11 11:53:17.727Z: #16 13.91            Created: Yes
2022-11-11 11:53:17.727Z: #16 13.91             Hidden: Yes
2022-11-11 11:53:17.727Z: #16 13.92     Home Directory: /var/empty
2022-11-11 11:53:17.727Z: 
2022-11-11 11:53:17.727Z: #16 13.92 
2022-11-11 11:53:17.727Z: #16 13.92 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.727Z: #16 13.92 I am executing:
2022-11-11 11:53:17.727Z: #16 13.92 
2022-11-11 11:53:17.727Z: #16 13.92     $ sudo usermod --comment Nix build user 25 nixbld25
2022-11-11 11:53:17.727Z: #16 13.92 
2022-11-11 11:53:17.727Z: #16 13.92 in order to give nixbld25 a useful comment
2022-11-11 11:53:17.727Z: #16 13.92 
2022-11-11 11:53:17.727Z: #16 13.93 usermod: no changes
2022-11-11 11:53:17.727Z: #16 13.93               Note: Nix build user 25
2022-11-11 11:53:17.727Z: #16 13.94    Logins Disabled: Yes
2022-11-11 11:53:17.727Z: #16 13.94   Member of nixbld: Yes
2022-11-11 11:53:17.727Z: #16 13.95     PrimaryGroupID: 30000
2022-11-11 11:53:17.727Z: #16 13.95 
2022-11-11 11:53:17.727Z: #16 13.95 ~~> Setting up the build user nixbld26
2022-11-11 11:53:17.727Z: #16 13.95 
2022-11-11 11:53:17.727Z: #16 13.95 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.727Z: #16 13.95 I am executing:
2022-11-11 11:53:17.727Z: #16 13.95 
2022-11-11 11:53:17.727Z: #16 13.95     $ sudo useradd --home-dir /var/empty --comment Nix build user 26 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30026 --password ! nixbld26
2022-11-11 11:53:17.727Z: #16 13.95 
2022-11-11 11:53:17.727Z: #16 13.95 Creating the Nix build user, nixbld26
2022-11-11 11:53:17.727Z: #16 13.95 
2022-11-11 11:53:17.840Z: #16 14.11            Created: Yes
2022-11-11 11:53:17.840Z: #16 14.11             Hidden: Yes
2022-11-11 11:53:17.840Z: #16 14.11     Home Directory: /var/empty
2022-11-11 11:53:17.840Z: #16 14.12 
2022-11-11 11:53:17.840Z: #16 14.12 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.840Z: #16 14.12 I am executing:
2022-11-11 11:53:17.840Z: #16 14.12 
2022-11-11 11:53:17.840Z: #16 14.12     $ sudo usermod --comment Nix build user 26 nixbld26
2022-11-11 11:53:17.840Z: #16 14.12 
2022-11-11 11:53:17.840Z: #16 14.12 in order to give nixbld26 a useful comment
2022-11-11 11:53:17.840Z: #16 14.12 
2022-11-11 11:53:17.840Z: #16 14.13 usermod: no changes
2022-11-11 11:53:17.841Z: #16 14.13               Note: Nix build user 26
2022-11-11 11:53:17.841Z: #16 14.13    Logins Disabled: Yes
2022-11-11 11:53:17.841Z: #16 14.14   Member of nixbld: Yes
2022-11-11 11:53:17.841Z: #16 14.14     PrimaryGroupID: 30000
2022-11-11 11:53:17.982Z: #16 14.14 
2022-11-11 11:53:17.983Z: #16 14.14 ~~> Setting up the build user nixbld27
2022-11-11 11:53:17.983Z: #16 14.14 
2022-11-11 11:53:17.983Z: 
2022-11-11 11:53:17.983Z: #16 14.15 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:17.983Z: #16 14.15 I am executing:
2022-11-11 11:53:17.983Z: #16 14.15 
2022-11-11 11:53:17.983Z: #16 14.15     $ sudo useradd --home-dir /var/empty --comment Nix build user 27 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30027 --password ! nixbld27
2022-11-11 11:53:17.983Z: #16 14.15 
2022-11-11 11:53:17.983Z: #16 14.15 Creating the Nix build user, nixbld27
2022-11-11 11:53:17.983Z: #16 14.15 
2022-11-11 11:53:18.123Z: #16 14.30            Created: Yes
2022-11-11 11:53:18.123Z: #16 14.30             Hidden: Yes
2022-11-11 11:53:18.123Z: #16 14.30     Home Directory: /var/empty
2022-11-11 11:53:18.123Z: #16 14.31 
2022-11-11 11:53:18.123Z: #16 14.31 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.123Z: #16 14.31 I am executing:
2022-11-11 11:53:18.123Z: #16 14.31 
2022-11-11 11:53:18.123Z: #16 14.31     $ sudo usermod --comment Nix build user 27 nixbld27
2022-11-11 11:53:18.123Z: #16 14.31 
2022-11-11 11:53:18.123Z: #16 14.31 in order to give nixbld27 a useful comment
2022-11-11 11:53:18.123Z: #16 14.31 
2022-11-11 11:53:18.123Z: #16 14.32 usermod: no changes
2022-11-11 11:53:18.123Z: 
2022-11-11 11:53:18.124Z: #16 14.32               Note: Nix build user 27
2022-11-11 11:53:18.124Z: #16 14.32    Logins Disabled: Yes
2022-11-11 11:53:18.124Z: #16 14.33   Member of nixbld: Yes
2022-11-11 11:53:18.124Z: #16 14.33     PrimaryGroupID: 30000
2022-11-11 11:53:18.124Z: #16 14.33 
2022-11-11 11:53:18.124Z: #16 14.33 ~~> Setting up the build user nixbld28
2022-11-11 11:53:18.124Z: #16 14.33 
2022-11-11 11:53:18.124Z: #16 14.34 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.124Z: #16 14.34 I am executing:
2022-11-11 11:53:18.124Z: #16 14.34 
2022-11-11 11:53:18.124Z: #16 14.34     $ sudo useradd --home-dir /var/empty --comment Nix build user 28 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30028 --password ! nixbld28
2022-11-11 11:53:18.124Z: #16 14.34 
2022-11-11 11:53:18.124Z: #16 14.34 Creating the Nix build user, nixbld28
2022-11-11 11:53:18.124Z: #16 14.34 
2022-11-11 11:53:18.298Z: #16 14.49            Created: Yes
2022-11-11 11:53:18.298Z: #16 14.49             Hidden: Yes
2022-11-11 11:53:18.298Z: #16 14.49     Home Directory: /var/empty
2022-11-11 11:53:18.298Z: #16 14.50 
2022-11-11 11:53:18.298Z: #16 14.50 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.298Z: #16 14.50 I am executing:
2022-11-11 11:53:18.298Z: #16 14.50 
2022-11-11 11:53:18.298Z: #16 14.50     $ sudo usermod --comment Nix build user 28 nixbld28
2022-11-11 11:53:18.298Z: #16 14.50 
2022-11-11 11:53:18.298Z: #16 14.50 in order to give nixbld28 a useful comment
2022-11-11 11:53:18.299Z: #16 14.50 
2022-11-11 11:53:18.299Z: #16 14.51 usermod: no changes
2022-11-11 11:53:18.299Z: #16 14.51               Note: Nix build user 28
2022-11-11 11:53:18.299Z: #16 14.51    Logins Disabled: Yes
2022-11-11 11:53:18.299Z: #16 14.52   Member of nixbld: Yes
2022-11-11 11:53:18.299Z: #16 14.52     PrimaryGroupID: 30000
2022-11-11 11:53:18.299Z: #16 14.52 
2022-11-11 11:53:18.299Z: #16 14.52 ~~> Setting up the build user nixbld29
2022-11-11 11:53:18.299Z: #16 14.52 
2022-11-11 11:53:18.299Z: #16 14.53 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.299Z: #16 14.53 I am executing:
2022-11-11 11:53:18.299Z: #16 14.53 
2022-11-11 11:53:18.299Z: #16 14.53     $ sudo useradd --home-dir /var/empty --comment Nix build user 29 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30029 --password ! nixbld29
2022-11-11 11:53:18.299Z: #16 14.53 
2022-11-11 11:53:18.299Z: #16 14.53 Creating the Nix build user, nixbld29
2022-11-11 11:53:18.299Z: #16 14.53 
2022-11-11 11:53:18.383Z: #16 14.67            Created: Yes
2022-11-11 11:53:18.383Z: #16 14.67             Hidden: Yes
2022-11-11 11:53:18.383Z: #16 14.67     Home Directory: /var/empty
2022-11-11 11:53:18.383Z: #16 14.68 
2022-11-11 11:53:18.383Z: #16 14.68 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.383Z: #16 14.68 I am executing:
2022-11-11 11:53:18.383Z: #16 14.68 
2022-11-11 11:53:18.383Z: #16 14.68     $ sudo usermod --comment Nix build user 29 nixbld29
2022-11-11 11:53:18.383Z: #16 14.68 
2022-11-11 11:53:18.383Z: #16 14.68 in order to give nixbld29 a useful comment
2022-11-11 11:53:18.383Z: #16 14.68 
2022-11-11 11:53:18.383Z: #16 14.69 usermod: no changes
2022-11-11 11:53:18.383Z: #16 14.69               Note: Nix build user 29
2022-11-11 11:53:18.383Z: #16 14.69    Logins Disabled: Yes
2022-11-11 11:53:18.550Z: #16 14.71   Member of nixbld:
2022-11-11 11:53:18.550Z:   Yes
2022-11-11 11:53:18.550Z: #16 14.71     PrimaryGroupID: 30000
2022-11-11 11:53:18.550Z: #16 14.71 
2022-11-11 11:53:18.551Z: #16 14.71 ~~> Setting up the build user nixbld30
2022-11-11 11:53:18.551Z: #16 14.71 
2022-11-11 11:53:18.551Z: #16 14.72 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.551Z: #16 14.72 I am executing:
2022-11-11 11:53:18.551Z: #16 14.72 
2022-11-11 11:53:18.551Z: #16 14.72     $ sudo useradd --home-dir /var/empty --comment Nix build user 30 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30030 --password ! nixbld30
2022-11-11 11:53:18.551Z: #16 14.72 
2022-11-11 11:53:18.551Z: #16 14.72 Creating the Nix build user, nixbld30
2022-11-11 11:53:18.551Z: #16 14.72 
2022-11-11 11:53:18.691Z: #16 14.86            Created: Yes
2022-11-11 11:53:18.691Z: #16 14.86             Hidden: Yes
2022-11-11 11:53:18.691Z: #16 14.86     Home Directory: /var/empty
2022-11-11 11:53:18.692Z: #16 14.88 
2022-11-11 11:53:18.692Z: #16 14.88 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.692Z: #16 14.88 I am executing:
2022-11-11 11:53:18.692Z: #16 14.88 
2022-11-11 11:53:18.692Z: #16 14.88     $ sudo usermod --comment Nix build user 30 nixbld30
2022-11-11 11:53:18.692Z: #16 14.88 
2022-11-11 11:53:18.692Z: #16 14.88 in order to give nixbld30 a useful comment
2022-11-11 11:53:18.692Z: #16 14.88 
2022-11-11 11:53:18.692Z: #16 14.88 usermod: no changes
2022-11-11 11:53:18.692Z: #16 14.88               Note: Nix build user 30
2022-11-11 11:53:18.692Z: #16 14.89    Logins Disabled: Yes
2022-11-11 11:53:18.692Z: #16 14.89   Member of nixbld: Yes
2022-11-11 11:53:18.692Z: #16 14.90     PrimaryGroupID: 30000
2022-11-11 11:53:18.692Z: #16 14.90 
2022-11-11 11:53:18.692Z: #16 14.90 ~~> Setting up the build user nixbld31
2022-11-11 11:53:18.692Z: #16 14.90 
2022-11-11 11:53:18.692Z: #16 14.91 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.692Z: #16 14.91 I am executing:
2022-11-11 11:53:18.692Z: #16 14.91 
2022-11-11 11:53:18.692Z: #16 14.91     $ sudo useradd --home-dir /var/empty --comment Nix build user 31 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30031 --password ! nixbld31
2022-11-11 11:53:18.692Z: #16 14.91 
2022-11-11 11:53:18.692Z: #16 14.91 Creating the Nix build user, nixbld31
2022-11-11 11:53:18.692Z: #16 14.91 
2022-11-11 11:53:18.803Z: #16 15.06            Created: Yes
2022-11-11 11:53:18.803Z: #16 15.06             Hidden: Yes
2022-11-11 11:53:18.803Z: #16 15.06     Home Directory: /var/empty
2022-11-11 11:53:18.803Z: #16 15.07 
2022-11-11 11:53:18.803Z: #16 15.07 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.803Z: #16 15.07 I am executing:
2022-11-11 11:53:18.803Z: 
2022-11-11 11:53:18.803Z: #16 15.07 
2022-11-11 11:53:18.803Z: #16 15.07     $ sudo usermod --comment Nix build user 31 nixbld31
2022-11-11 11:53:18.803Z: #16 15.07 
2022-11-11 11:53:18.803Z: #16 15.07 in order to give nixbld31 a useful comment
2022-11-11 11:53:18.803Z: #16 15.07 
2022-11-11 11:53:18.803Z: #16 15.08 usermod: no changes
2022-11-11 11:53:18.803Z: #16 15.08               Note: Nix build user 31
2022-11-11 11:53:18.803Z: #16 15.09    Logins Disabled: Yes
2022-11-11 11:53:18.803Z: #16 15.09   Member of nixbld: Yes
2022-11-11 11:53:18.803Z: #16 15.09     PrimaryGroupID: 30000
2022-11-11 11:53:18.803Z: #16 15.09 
2022-11-11 11:53:18.803Z: #16 15.10 ~~> Setting up the build user nixbld32
2022-11-11 11:53:18.803Z: #16 15.10 
2022-11-11 11:53:18.955Z: #16 15.10 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:18.955Z: #16 15.10 I am executing:
2022-11-11 11:53:18.955Z: #16 15.10 
2022-11-11 11:53:18.955Z: #16 15.10     $ sudo useradd --home-dir /var/empty --comment Nix build user 32 --gid 30000 --groups nixbld --no-user-group --system --shell /sbin/nologin --uid 30032 --password ! nixbld32
2022-11-11 11:53:18.955Z: #16 15.10 
2022-11-11 11:53:18.955Z: #16 15.10 Creating the Nix build user, nixbld32
2022-11-11 11:53:18.955Z: #16 15.10 
2022-11-11 11:53:18.955Z: #16 15.25            Created: Yes
2022-11-11 11:53:19.114Z: #16 15.25             Hidden: Yes
2022-11-11 11:53:19.114Z: #16 15.25     Home Directory: /var/empty
2022-11-11 11:53:19.114Z: #16 15.26 
2022-11-11 11:53:19.114Z: #16 15.26 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.114Z: #16 15.26 I am executing:
2022-11-11 11:53:19.114Z: #16 15.26 
2022-11-11 11:53:19.114Z: #16 15.26     $ sudo usermod --comment Nix build user 32 nixbld32
2022-11-11 11:53:19.114Z: #16 15.26 
2022-11-11 11:53:19.114Z: #16 15.26 in order to give nixbld32 a useful comment
2022-11-11 11:53:19.114Z: #16 15.26 
2022-11-11 11:53:19.114Z: #16 15.26 usermod: no changes
2022-11-11 11:53:19.114Z: #16 15.27               Note: Nix build user 32
2022-11-11 11:53:19.114Z: #16 15.28    Logins Disabled: Yes
2022-11-11 11:53:19.114Z: #16 15.28   Member of nixbld: Yes
2022-11-11 11:53:19.114Z: #16 15.29     PrimaryGroupID: 30000
2022-11-11 11:53:19.114Z: #16 15.29 
2022-11-11 11:53:19.114Z: #16 15.29 ~~> Setting up the basic directory structure
2022-11-11 11:53:19.114Z: #16 15.29 
2022-11-11 11:53:19.114Z: #16 15.29 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.114Z: #16 15.29 I am executing:
2022-11-11 11:53:19.114Z: #16 15.29 
2022-11-11 11:53:19.114Z: #16 15.29     $ sudo install -dv -m 0755 /nix /nix/var /nix/var/log /nix/var/log/nix /nix/var/log/nix/drvs /nix/var/nix /nix/var/nix/db /nix/var/nix/gcroots /nix/var/nix/profiles /nix/var/nix/temproots /nix/var/nix/userpool /nix/var/nix/daemon-socket /nix/var/nix/gcroots/per-user /nix/var/nix/profiles/per-user
2022-11-11 11:53:19.114Z: #16 15.29 
2022-11-11 11:53:19.115Z: #16 15.29 to make the basic directory structure of Nix (part 1)
2022-11-11 11:53:19.115Z: #16 15.29 
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/log'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/log/nix'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/log/nix/drvs'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/db'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/gcroots'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/profiles'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/temproots'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/userpool'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/daemon-socket'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/gcroots/per-user'
2022-11-11 11:53:19.115Z: #16 15.29 install: creating directory '/nix/var/nix/profiles/per-user'
2022-11-11 11:53:19.115Z: #16 15.30 
2022-11-11 11:53:19.115Z: #16 15.30 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.115Z: #16 15.30 I am executing:
2022-11-11 11:53:19.115Z: #16 15.30 
2022-11-11 11:53:19.115Z: #16 15.30     $ sudo install -dv -g nixbld -m 1775 /nix/store
2022-11-11 11:53:19.115Z: #16 15.30 
2022-11-11 11:53:19.115Z: #16 15.30 to make the basic directory structure of Nix (part 2)
2022-11-11 11:53:19.115Z: #16 15.30 
2022-11-11 11:53:19.115Z: #16 15.30 install: creating directory '/nix/store'
2022-11-11 11:53:19.115Z: #16 15.31 
2022-11-11 11:53:19.115Z: #16 15.31 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.115Z: #16 15.31 I am executing:
2022-11-11 11:53:19.115Z: #16 15.31 
2022-11-11 11:53:19.115Z: #16 15.31     $ sudo install -dv -m 0555 /etc/nix
2022-11-11 11:53:19.115Z: #16 15.31 
2022-11-11 11:53:19.115Z: #16 15.31 to place the default nix daemon configuration (part 1)
2022-11-11 11:53:19.115Z: #16 15.31 
2022-11-11 11:53:19.115Z: #16 15.31 install: creating directory '/etc/nix'
2022-11-11 11:53:19.115Z: #16 15.31 
2022-11-11 11:53:19.115Z: #16 15.31 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.115Z: #16 15.31 I am executing:
2022-11-11 11:53:19.115Z: #16 15.32 
2022-11-11 11:53:19.115Z: #16 15.32     $ sudo install -m 0664 /tmp/tmp.ytMQA2oKNG/.nix-channels /root/.nix-channels
2022-11-11 11:53:19.115Z: #16 15.32 
2022-11-11 11:53:19.115Z: #16 15.32 to set up the default system channel (part 1)
2022-11-11 11:53:19.115Z: #16 15.32 
2022-11-11 11:53:19.115Z: #16 15.32 
2022-11-11 11:53:19.115Z: #16 15.32 ~~> Installing Nix
2022-11-11 11:53:19.116Z: #16 15.32 
2022-11-11 11:53:19.116Z: #16 15.32 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.116Z: #16 15.32 I am executing:
2022-11-11 11:53:19.116Z: #16 15.32 
2022-11-11 11:53:19.118Z: #16 15.32     $ sudo cp -RPp ./store/0296qxvn30z9b2ah1g5p97k5wr9k8y78-busybox-static-x86_64-unknown-linux-musl-1.35.0 ./store/0v13vs0g3mfcxnw57ll8abjccgmkcydv-libarchive-3.6.1-lib ./store/0wzjyb53b5cyjdpg4fhkbihxg76j8nql-aws-c-common-0.7.0 ./store/297lkvbkxxsbw26yal0is899hd2aiqjy-libssh2-1.10.0 ./store/3h6mnqxvvd4l9c93q3waczigc6lhd2vj-libcpuid-0.5.1 ./store/3rmz64m00y3p6li30a3r5sv0x9wmma1r-aws-c-event-stream-0.2.7 ./store/55x9vyjbplnkrc0b2f060jqzdwqd13n4-sqlite-3.38.5 ./store/5idhc5rwc6x2khi5rrapfy71sydirqr1-libkrb5-1.19.3 ./store/63l0yvgig54h498v0d1sm7w2k15hn8c4-aws-c-sdkutils-0.1.2 ./store/6n4g81h2sxa4drqzp80zy043fmk6g4sb-aws-c-mqtt-0.7.10 ./store/7vj1h9s1yfkj66dh9645rk51pjpb0hkr-nss-cacert-3.80 ./store/8cbsr6jgw7zwhysm13139w1mff3wm1as-aws-sdk-cpp-1.9.238 ./store/96jckpr8dazx457ksv36laphp4n9z8p6-attr-2.5.1 ./store/9jnw3gnfyy1n83vvjfbaxyxc8xvw929f-aws-checksums-0
2022-11-11 11:53:19.118Z: .1.12 ./store/akfyfk3x3p4schkysfl7vbd6q4vdj8hb-boehm-gc-8.0.6 ./store/ay6siz8k5w39jr0mnvazzkcqq50x6yb5-aws-crt-cpp-0.17.28 ./store/c0mn074y2k6fxcmvfap3vf3wg0nc7xra-aws-c-io-0.11.0 ./store/cki6zalbpin96q7k33a1s26ffmbqvr4r-xz-5.2.5 ./store/csm1q8vl54pbjx2z3gda4h3gyq5xdgjw-aws-c-cal-0.5.17 ./store/cvjizmvf7bml9a9ppcbl4gxc2y8smbai-bzip2-1.0.6.0.2 ./store/fns6wcqslwj7zcr7w26hrfph76hc5i62-curl-7.83.1 ./store/g6r9mrw0gjdjf0mzradwwmdvarjzwa0n-aws-c-s3-0.1.39 ./store/ga9q4ikprn36wm32gqm4k521iv9kic5p-libsodium-1.0.18 ./store/iffl6dlplhv22i2xy7n1w51a5r631kmi-bash-5.1-p16 ./store/j132k1ncfn6gjfd2f5s1gz37170rch4h-gcc-11.3.0-lib ./store/jj5p0b6qhs0khkaj3426b3hq2kqf8ayl-aws-c-compression-0.2.14 ./store/kjg23ai2wb6p3sqpfkdd3xina8ci927z-libxml2-2.9.14 ./store/l7j222k357y8fbh9gj283mv7s1nh1vrx-zstd-1.5.2 ./store/mlbn02rnylynyx1xmrz3xk63b6wqalgx-aws-c-auth-0.6.13 ./store/mq45jndj8nadwiq3pb71y1af4ylmfq12-s2n-tls-1.3.12 ./store/nwf2y0nc48ybim56308cr5ccvwkabcqc-openssl-1.1.1q ./store/pgs9rvnmcl67p2cws6srx7p1bzbxpppd-acl-2.3.1 ./store/q7k32ydcqlram7f0l6b1y2c4cs07765y-zlib-1.2.12 ./store/qm9l62vy5cxiav1bax9gjbhp48751bwb-brotli-1.0.9-lib ./store/qrrn2l5gf21z4mwaizzsq4mn5mbv2gk3-keyutils-1.6.3-lib ./store/rp4dwxbw4vk590lrbcf9r198cdjwjhmd-libidn2-2.3.2 ./store/sb43q2bscllkq89i38v9p79gz256qy52-nghttp2-1.47.0-lib ./store/scd5n7xsn0hh0lvhhnycr9gx0h8xfzsl-glibc-2.34-210 ./store/sdf122qy7qd3j3j9ra0jnniawmyhsk7n-libseccomp-2.5.3-lib ./store/vk07fza1iv9hxj61l00bac8a5lml03pz-curl-7.83.1 ./store/wgb5lk0vlvdin5m8phhy5zmb86p9zlki-nlohmann_json-3.10.5 ./store/wj6j8lrdlind44n7vqn864ga7y802vc7-libunistring-1.0 ./store/x2f9x5q6qrs6cssx09ylxqyg9q2isi1z-aws-c-http-0.6.15 ./store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1 ./store/y3zqf6hyc719h78s90jrr2cypm4sj4qw-editline-1.17.1 /nix/store/
2022-11-11 11:53:19.118Z: #16 15.32 
2022-11-11 11:53:19.118Z: #16 15.33 to copy the basic Nix files to the new store at /nix/store
2022-11-11 11:53:19.118Z: #16 15.33 
2022-11-11 11:53:19.400Z: #16 15.69 
2022-11-11 11:53:19.539Z: #16 15.69 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.539Z: #16 15.69 I am executing:
2022-11-11 11:53:19.539Z: #16 15.69 
2022-11-11 11:53:19.539Z: #16 15.69     $ sudo chmod -R ugo-w /nix/store/
2022-11-11 11:53:19.539Z: #16 15.69 
2022-11-11 11:53:19.539Z: #16 15.69 to make the new store non-writable at /nix/store
2022-11-11 11:53:19.539Z: #16 15.69 
2022-11-11 11:53:19.539Z: #16 15.73       Alright! We have our first nix at /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1
2022-11-11 11:53:19.539Z: #16 15.73 
2022-11-11 11:53:19.539Z: #16 15.73 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.539Z: #16 15.73 I am executing:
2022-11-11 11:53:19.539Z: #16 15.73 
2022-11-11 11:53:19.539Z: #16 15.73     $ sudo /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-store --load-db
2022-11-11 11:53:19.540Z: #16 15.73 
2022-11-11 11:53:19.540Z: #16 15.73 to load data for the first time in to the Nix Database
2022-11-11 11:53:19.540Z: #16 15.73 
2022-11-11 11:53:19.934Z: #16 16.20       Just finished getting the nix database ready.
2022-11-11 11:53:19.937Z: #16 16.20 
2022-11-11 11:53:19.938Z: #16 16.20 ~~> Setting up shell profiles: /etc/bashrc /etc/profile.d/nix.sh /etc/zshrc /etc/bash.bashrc /etc/zsh/zshrc
2022-11-11 11:53:19.939Z: #16 16.20 
2022-11-11 11:53:19.940Z: #16 16.20 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.941Z: #16 16.20 I am executing:
2022-11-11 11:53:19.942Z: #16 16.20 
2022-11-11 11:53:19.943Z: #16 16.20     $ sudo touch /etc/bashrc
2022-11-11 11:53:19.943Z: #16 16.20 
2022-11-11 11:53:19.945Z: #16 16.20 to create a stub /etc/bashrc which will be updated
2022-11-11 11:53:19.946Z: #16 16.20 
2022-11-11 11:53:19.956Z: #16 16.22 
2022-11-11 11:53:19.956Z: #16 16.22 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.957Z: #16 16.22 I am executing:
2022-11-11 11:53:19.957Z: #16 16.22 
2022-11-11 11:53:19.958Z: #16 16.22     $ sudo tee -a /etc/bashrc
2022-11-11 11:53:19.958Z: #16 16.22 
2022-11-11 11:53:19.958Z: #16 16.22 extend your /etc/bashrc with nix-daemon settings
2022-11-11 11:53:19.963Z: #16 16.22 
2022-11-11 11:53:19.971Z: #16 16.22 
2022-11-11 11:53:19.971Z: #16 16.22 # Nix
2022-11-11 11:53:19.972Z: #16 16.22 if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
2022-11-11 11:53:19.972Z: #16 16.22   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
2022-11-11 11:53:19.973Z: #16 16.22 fi
2022-11-11 11:53:19.973Z: #16 16.22 # End Nix
2022-11-11 11:53:19.973Z: #16 16.22 
2022-11-11 11:53:19.974Z: #16 16.23 
2022-11-11 11:53:19.976Z: #16 16.23 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.977Z: #16 16.23 I am executing:
2022-11-11 11:53:19.978Z: #16 16.23 
2022-11-11 11:53:19.978Z: #16 16.23     $ sudo touch /etc/profile.d/nix.sh
2022-11-11 11:53:19.979Z: #16 16.23 
2022-11-11 11:53:19.979Z: #16 16.23 to create a stub /etc/profile.d/nix.sh which will be updated
2022-11-11 11:53:19.980Z: #16 16.23 
2022-11-11 11:53:19.982Z: #16 16.24 
2022-11-11 11:53:19.984Z: #16 16.24 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:19.985Z: #16 16.24 I am executing:
2022-11-11 11:53:19.985Z: #16 16.24 
2022-11-11 11:53:19.986Z: #16 16.24     $ sudo tee -a /etc/profile.d/nix.sh
2022-11-11 11:53:19.987Z: #16 16.24 
2022-11-11 11:53:19.988Z: #16 16.24 extend your /etc/profile.d/nix.sh with nix-daemon settings
2022-11-11 11:53:19.988Z: #16 16.24 
2022-11-11 11:53:19.989Z: #16 16.25 
2022-11-11 11:53:19.990Z: #16 16.25 # Nix
2022-11-11 11:53:19.990Z: #16 16.25 if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
2022-11-11 11:53:19.991Z: #16 16.25   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
2022-11-11 11:53:19.992Z: #16 16.25 fi
2022-11-11 11:53:19.992Z: #16 16.25 # End Nix
2022-11-11 11:53:19.993Z: #16 16.25 
2022-11-11 11:53:20.048Z: #16 16.25 
2022-11-11 11:53:20.048Z: #16 16.25 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.048Z: #16 16.25 I am executing:
2022-11-11 11:53:20.048Z: #16 16.25 
2022-11-11 11:53:20.048Z: #16 16.25     $ sudo touch /etc/zshrc
2022-11-11 11:53:20.048Z: #16 16.25 
2022-11-11 11:53:20.048Z: #16 16.25 to create a stub /etc/zshrc which will be updated
2022-11-11 11:53:20.048Z: #16 16.25 
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.28 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.048Z: #16 16.28 I am executing:
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.28     $ sudo tee -a /etc/zshrc
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.28 extend your /etc/zshrc with nix-daemon settings
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.28 # Nix
2022-11-11 11:53:20.048Z: #16 16.28 if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
2022-11-11 11:53:20.048Z: #16 16.28   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
2022-11-11 11:53:20.048Z: #16 16.28 fi
2022-11-11 11:53:20.048Z: #16 16.28 # End Nix
2022-11-11 11:53:20.048Z: #16 16.28 
2022-11-11 11:53:20.048Z: #16 16.29 
2022-11-11 11:53:20.048Z: #16 16.29 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.048Z: #16 16.29 I am executing:
2022-11-11 11:53:20.048Z: #16 16.29 
2022-11-11 11:53:20.048Z: #16 16.29     $ sudo cp /etc/bash.bashrc /etc/bash.bashrc.backup-before-nix
2022-11-11 11:53:20.049Z: #16 16.29 
2022-11-11 11:53:20.049Z: #16 16.29 to back up your current /etc/bash.bashrc to /etc/bash.bashrc.backup-before-nix
2022-11-11 11:53:20.049Z: #16 16.29 
2022-11-11 11:53:20.050Z: #16 16.30 
2022-11-11 11:53:20.050Z: #16 16.30 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.050Z: #16 16.30 I am executing:
2022-11-11 11:53:20.050Z: #16 16.30 
2022-11-11 11:53:20.050Z: #16 16.30     $ sudo tee -a /etc/bash.bashrc
2022-11-11 11:53:20.051Z: #16 16.30 
2022-11-11 11:53:20.051Z: #16 16.30 extend your /etc/bash.bashrc with nix-daemon settings
2022-11-11 11:53:20.051Z: #16 16.30 
2022-11-11 11:53:20.052Z: #16 16.32 
2022-11-11 11:53:20.052Z: #16 16.32 # Nix
2022-11-11 11:53:20.052Z: #16 16.32 if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
2022-11-11 11:53:20.052Z: #16 16.32   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
2022-11-11 11:53:20.052Z: #16 16.32 fi
2022-11-11 11:53:20.053Z: #16 16.32 # End Nix
2022-11-11 11:53:20.053Z: #16 16.32 
2022-11-11 11:53:20.053Z: #16 16.32 
2022-11-11 11:53:20.053Z: #16 16.32 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.053Z: #16 16.32 I am executing:
2022-11-11 11:53:20.054Z: #16 16.32 
2022-11-11 11:53:20.054Z: #16 16.32     $ sudo cp /etc/zsh/zshrc /etc/zsh/zshrc.backup-before-nix
2022-11-11 11:53:20.054Z: #16 16.32 
2022-11-11 11:53:20.054Z: #16 16.32 to back up your current /etc/zsh/zshrc to /etc/zsh/zshrc.backup-before-nix
2022-11-11 11:53:20.054Z: #16 16.32 
2022-11-11 11:53:20.054Z: #16 16.36 
2022-11-11 11:53:20.196Z: #16 16.36 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.196Z: #16 16.36 I am executing:
2022-11-11 11:53:20.196Z: #16 16.36 
2022-11-11 11:53:20.196Z: 
2022-11-11 11:53:20.196Z: #16 16.36     $ sudo tee -a /etc/zsh/zshrc
2022-11-11 11:53:20.197Z: #16 16.36 
2022-11-11 11:53:20.197Z: #16 16.36 extend your /etc/zsh/zshrc with nix-daemon settings
2022-11-11 11:53:20.197Z: #16 16.36 
2022-11-11 11:53:20.197Z: #16 16.38 
2022-11-11 11:53:20.197Z: #16 16.38 # Nix
2022-11-11 11:53:20.197Z: #16 16.38 if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
2022-11-11 11:53:20.198Z: #16 16.38   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
2022-11-11 11:53:20.198Z: #16 16.38 fi
2022-11-11 11:53:20.198Z: #16 16.38 # End Nix
2022-11-11 11:53:20.198Z: #16 16.38 
2022-11-11 11:53:20.198Z: #16 16.38 
2022-11-11 11:53:20.198Z: #16 16.38 ~~> Setting up shell profiles for Fish with with conf.d/nix.fish inside /etc/fish /usr/local/etc/fish /opt/homebrew/etc/fish /opt/local/etc/fish
2022-11-11 11:53:20.199Z: #16 16.38 
2022-11-11 11:53:20.199Z: #16 16.39 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.199Z: #16 16.39 I am executing:
2022-11-11 11:53:20.199Z: #16 16.39 
2022-11-11 11:53:20.199Z: #16 16.39     $ sudo tee /etc/fish/conf.d/nix.fish
2022-11-11 11:53:20.199Z: #16 16.39 
2022-11-11 11:53:20.200Z: #16 16.39 write nix-daemon settings to /etc/fish/conf.d/nix.fish
2022-11-11 11:53:20.200Z: #16 16.39 
2022-11-11 11:53:20.200Z: #16 16.40 
2022-11-11 11:53:20.211Z: #16 16.40 # Nix
2022-11-11 11:53:20.211Z: #16 16.40 if test -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
2022-11-11 11:53:20.211Z: #16 16.40   . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish'
2022-11-11 11:53:20.211Z: #16 16.40 end
2022-11-11 11:53:20.211Z: #16 16.40 # End Nix
2022-11-11 11:53:20.211Z: #16 16.40 
2022-11-11 11:53:20.323Z: #16 16.60 
2022-11-11 11:53:20.323Z: #16 16.60 ~~> Setting up the default profile
2022-11-11 11:53:20.323Z: #16 16.60 
2022-11-11 11:53:20.323Z: #16 16.60 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.323Z: #16 16.60 I am executing:
2022-11-11 11:53:20.323Z: #16 16.60 
2022-11-11 11:53:20.323Z: #16 16.60     $ sudo HOME=/root /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-env -i /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1
2022-11-11 11:53:20.323Z: #16 16.60 
2022-11-11 11:53:20.323Z: #16 16.60 to install a bootstrapping Nix in to the default profile
2022-11-11 11:53:20.323Z: #16 16.60 
2022-11-11 11:53:20.323Z: #16 16.63 installing 'nix-2.11.1'
2022-11-11 11:53:20.434Z: #16 16.66 building '/nix/store/1rsghfzhjmzwm2j3hca5803z4gvmpr02-user-environment.drv'...
2022-11-11 11:53:20.434Z: #16 16.69 
2022-11-11 11:53:20.434Z: #16 16.69 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.434Z: #16 16.69 I am executing:
2022-11-11 11:53:20.434Z: #16 16.69 
2022-11-11 11:53:20.434Z: #16 16.69     $ sudo HOME=/root /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-env -i /nix/store/7vj1h9s1yfkj66dh9645rk51pjpb0hkr-nss-cacert-3.80
2022-11-11 11:53:20.434Z: #16 16.69 
2022-11-11 11:53:20.434Z: #16 16.69 to install a bootstrapping SSL certificate just for Nix in to the default profile
2022-11-11 11:53:20.434Z: #16 16.69 
2022-11-11 11:53:20.434Z: #16 16.72 installing 'nss-cacert-3.80'
2022-11-11 11:53:20.434Z: #16 16.74 building '/nix/store/x6mlg3gy8r657pd9l6md17fpb5ah2p8v-user-environment.drv'...
2022-11-11 11:53:20.575Z: #16 16.78 
2022-11-11 11:53:20.575Z: #16 16.78 ---- sudo execution ------------------------------------------------------------
2022-11-11 11:53:20.575Z: #16 16.78 I am executing:
2022-11-11 11:53:20.575Z: #16 16.78 
2022-11-11 11:53:20.575Z: #16 16.78     $ sudo HOME=/root NIX_SSL_CERT_FILE=/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /nix/store/xdlpraypxdimjyfrr4k06narrv8nmfgh-nix-2.11.1/bin/nix-channel --update nixpkgs
2022-11-11 11:53:20.575Z: #16 16.78 
2022-11-11 11:53:20.575Z: #16 16.78 to update the default channel in the default profile
2022-11-11 11:53:20.575Z: #16 16.78 
2022-11-11 11:53:21.447Z: #16 17.75 unpacking channels...
2022-11-11 11:53:35.291Z: #16 31.61 /tmp/nix-binary-tarball-unpack.cessMJDOtv/unpack/nix-2.11.1-x86_64-linux/install-multi-user: line 940: /tmp/tmp.ytMQA2oKNG/nix.conf: No such file or directory
2022-11-11 11:53:35.490Z: #16 31.62 
2022-11-11 11:53:35.490Z: #16 31.62 ---- oh no! --------------------------------------------------------------------
2022-11-11 11:53:35.490Z: #16 31.62 Jeeze, something went wrong. If you can take all the output and open
2022-11-11 11:53:35.490Z: #16 31.62 an issue, we'd love to fix the problem so nobody else has this issue.
2022-11-11 11:53:35.490Z: #16 31.62 
2022-11-11 11:53:35.490Z: #16 31.62 :(
2022-11-11 11:53:35.490Z: #16 31.62 
2022-11-11 11:53:35.490Z: #16 31.62 We'd love to help if you need it.
2022-11-11 11:53:35.490Z: #16 31.62 
2022-11-11 11:53:35.490Z: #16 31.62 You can open an issue at https://github.com/nixos/nix/issues
2022-11-11 11:53:35.490Z: #16 31.62 
2022-11-11 11:53:35.490Z: #16 31.62 Or feel free to contact the team:
2022-11-11 11:53:35.490Z: #16 31.62  - Matrix: #nix:nixos.org
2022-11-11 11:53:35.490Z: #16 31.62  - IRC: in #nixos on irc.libera.chat
2022-11-11 11:53:35.490Z: #16 31.62  - twitter: @nixos_org
2022-11-11 11:53:35.490Z: #16 31.62  - forum: https://discourse.nixos.org
2022-11-11 11:53:35.490Z: #16 31.62 ERROR: Feature "Nix Package Manager" (ghcr.io/devcontainers/features/nix) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/nix for help troubleshooting this error.
2022-11-11 11:53:35.995Z: #16 ERROR: executor failed running [/bin/sh -c cd /tmp/build-features/nix_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh]: exit code: 1
2022-11-11 11:53:35.995Z: ------
2022-11-11 11:53:35.995Z:  > [dev_containers_target_stage 4/4] RUN cd /tmp/build-features/nix_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh:
2022-11-11 11:53:35.995Z: #16 31.62 We'd love to help if you need it.
2022-11-11 11:53:35.995Z: #16 31.62 
2022-11-11 11:53:35.995Z: #16 31.62 You can open an issue at https://github.com/nixos/nix/issues
2022-11-11 11:53:35.995Z: #16 31.62 
2022-11-11 11:53:35.995Z: #16 31.62 Or feel free to contact the team:
2022-11-11 11:53:35.995Z: #16 31.62  - Matrix: #nix:nixos.org
2022-11-11 11:53:35.995Z: #16 31.62  - IRC: in #nixos on irc.libera.chat
2022-11-11 11:53:35.995Z: #16 31.62  - twitter: @nixos_org
2022-11-11 11:53:35.995Z: #16 31.62  - forum: https://discourse.nixos.org
2022-11-11 11:53:35.995Z: #16 31.62 ERROR: Feature "Nix Package Manager" (ghcr.io/devcontainers/features/nix) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/nix for help troubleshooting this error.
2022-11-11 11:53:35.995Z: ------
2022-11-11 11:53:35.995Z: ERROR: failed to solve: executor failed running [/bin/sh -c cd /tmp/build-features/nix_1 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh]: exit code: 1
2022-11-11 11:53:35.995Z: Stop (40613 ms): Run: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.23.2-1668167574104 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:2 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-nix-codespace-test-c43aa416198c50988ea422844de72011-features -f /tmp/devcontainercli-root/container-features/0.23.2-1668167574104/Dockerfile.extended /var/lib/docker/codespacemount/.persistedshare/empty-folder
2022-11-11 11:53:35.995Z: Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.23.2-1668167574104 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:2 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-nix-codespace-test-c43aa416198c50988ea422844de72011-features -f /tmp/devcontainercli-root/container-features/0.23.2-1668167574104/Dockerfile.extended /var/lib/docker/codespacemount/.persistedshare/empty-folder
2022-11-11 11:53:35.996Z:     at loe (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1887:1339)
2022-11-11 11:53:35.996Z:     at eT (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1887:1275)
2022-11-11 11:53:35.996Z:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
2022-11-11 11:53:35.996Z:     at async voe (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1893:2049)
2022-11-11 11:53:35.996Z:     at async Xf (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:1893:3212)
2022-11-11 11:53:35.996Z:     at async Jae (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2013:15058)
2022-11-11 11:53:35.996Z:     at async Wae (/usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js:2013:14812)
2022-11-11 11:53:35.996Z: Stop (42223 ms): Run: /usr/bin/node /usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --workspace-folder /var/lib/docker/codespacemount/workspace/nix-codespace-test --id-label Type=codespaces --log-level info --log-format json --config /var/lib/docker/codespacemount/workspace/nix-codespace-test/.devcontainer/devcontainer.json --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --skip-post-create --update-remote-user-uid-default never --mount-workspace-git-root false
2022-11-11 11:53:35.996Z: Exit code 1

====================================== ERROR ====================================
2022-11-11 11:53:35.996Z: Failed to create container.
=================================================================================
2022-11-11 11:53:36.002Z: Error: Command failed: /usr/bin/node /usr/lib/node_modules/@microsoft/vscode-dev-containers-cli/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /var/lib/docker/codespacemount/.persistedshare --container-data-folder .vscode-remote/data/Machine --container-system-data-folder /var/vscode-remote --workspace-folder /var/lib/docker/codespacemount/workspace/nix-codespace-test --id-label Type=codespaces --log-level info --log-format json --config /var/lib/docker/codespacemount/workspace/nix-codespace-test/.devcontainer/devcontainer.json --override-config /root/.codespaces/shared/merged_devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=bind,source=/.codespaces/agent/mount/cache,target=/vscode --skip-post-create --update-remote-user-uid-default never --mount-workspace-git-root false
2022-11-11 11:53:36.006Z: Error Code: 1302

====================================== ERROR ====================================
2022-11-11 11:53:36.055Z: Container creation failed.
=================================================================================
2022-11-11 11:53:36.104Z: 

===================================== WARNING ===================================
2022-11-11 11:53:36.111Z: Creating recovery container.
=================================================================================

=================================================================================
2022-11-11 11:54:49.877Z: Creating container...

=================================================================================
2022-11-11 11:55:09.559Z: Running blocking commands...

=================================================================================
2022-11-11 11:55:11.406Z: Configuring codespace...

=================================================================================
2022-11-11 11:55:11.408Z: Finished configuring codespace.
dsyer commented 2 years ago

It worked for me from a random Github repo with no .devcontainer pre-configured. I chose a base Ubuntu container and nix feature. The generated JSON is (with comments deleted):

{
    "name": "Ubuntu",
    "image": "mcr.microsoft.com/devcontainers/base:jammy",
    "features": {
        "ghcr.io/devcontainers/features/nix:1": {}
    }
}

I'm having issues getting it to work with VScode locally though.

Chuxel commented 2 years ago

It worked for me from a random Github repo with no .devcontainer pre-configured. I chose a base Ubuntu container and nix feature. The generated JSON is (with comments deleted):

{
  "name": "Ubuntu",
  "image": "mcr.microsoft.com/devcontainers/base:jammy",
  "features": {
      "ghcr.io/devcontainers/features/nix:1": {}
  }
}

I'm having issues getting it to work with VScode locally though.

There seems to be some interaction with the universal image here - unclear why. As @dsyer said, other images seem to be working as expected. Need to take a deeper look to see what is up. Thanks for cross-posting at https://github.com/devcontainers/features/issues/275 . The way this works is by default is uses a multi-user setup and spins up nix-daemon. There's also a single user mode for a non-root user available. So privs should be correct.

FWIW - We'd also be happy to transition the Dev Container Feature to the Nix project if there's interest in maintaining an official one. It's easy enough to self-publish - but that's a separate conversation.

CSchank commented 1 year ago

@Chuxel this workaround (using base:jammy) seems to be broken now as well - have you found another?

dzmitry-lahoda commented 1 year ago

by the way. devenv seems work well.

dzmitry-lahoda commented 1 year ago

also try zero to nix installer

nixos-discourse commented 1 year ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/github-codespace-support/27152/2

drupol commented 1 year ago

I had issue with the official Nix installer on Amazon Workspace... I reported the issue here and here... and it has been fixed in DeterminateSystem installer.

I would give it a try on Github Codespaces and see if it works: https://github.com/DeterminateSystems/nix-installer

refroni commented 1 year ago

side note - We've brought this up with the github team today and they will be taking a look at this

dsyer commented 1 year ago

It's still broken in Codespaces as far as I can tell. I tried with "jammy" and "bullseye" variants of the universal image.

dzmitry-lahoda commented 1 year ago

you can check attached discord comment. it works with home manager in docker build approach. the only thing i still not done, source env vars into codespace session. i need some libs to be in env. local docker seems worked too.

i was able to make vscode to consume nix installed tools, docker in docker feature works, nix run and nix build work, can bake anything into home manager for caching, code space super close to flake develop so codespace is close to local develop, sure profile install and home switch.

lacking only session variables(why it is so hard?) and generator of codespace definion from nix(super easy).

nix codespace feature miles behind this.

likely new nix installer will simplify docker setup. also, i would perfer MS to allow to run VM images. so i can run same image in codespace or in cloud or local vm created via nixos generator with modules. docker sucks. just give me good azure and hyperv image builder)

dzmitry-lahoda commented 1 year ago

for some reason home manager inject into session variables glibc and some locales, but does not sources this into profiles. if i source it along with my variables, vscode fails (seems like conflict of libs). so I source only i know needed

# variables are put into this file, but also some extra vars
# seems shole file conflicts with vscode startup injection
# so getting one by one for evaluation
RUN cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh | grep "PROTOC" >> ~/.profile
RUN cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh | grep "PROTOC" >> ~/.bashrc
RUN cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh | grep "ROCKSDB_LIB_DIR" >> ~/.profile
RUN cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh | grep "ROCKSDB_LIB_DIR" >> ~/.bashrc
aryairani commented 1 year ago

It works okay for me with this in my devcontainer.json. Granted it's not the Universal image, but the universal image doesn't have much free space and you probably don't get anything useful out of it if you are going to use Nix for your dependencies anyway.

{
  "image":"mcr.microsoft.com/devcontainers/base:alpine",
  "features": {
    "ghcr.io/devcontainers/features/nix:1": {
      "multiUser": true,
      "version": "latest"
    }
  }
}

There might be a more minimal version that works but I didn't care to try to minimize.

dzmitry-lahoda commented 1 year ago

It works okay for me with this in my devcontainer.json. Granted it's not the Universal image, but the universal image doesn't have much free space and you probably don't get anything useful out of it if you are going to use Nix for your dependencies anyway.

{
  "image":"mcr.microsoft.com/devcontainers/base:alpine",
  "features": {
    "ghcr.io/devcontainers/features/nix:1": {
      "multiUser": true,
      "version": "latest"
    }
  }
}

There might be a more minimal version that works but I didn't care to try to minimize.

you say that when vscode on remote codespace popups, its plugins catch up whatever tooling and environment variables you have put for people into nix shell?

the need is nix, and nix to install exact versions of all compilers, lsps, renders, optimizers, etc for users on start fast