-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
ec2-user@ip-172-31-33-126 ~ % curl --proto '=https' --tlsv1.2 -sSf -L https://artifacts.nixos.org/experimental-installer | \
sh -s -- install
info: downloading installer
INFO nix-installer v3.11.3
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
INFO nix-installer v3.11.3
Nix install plan (v3.11.3)
Planner: macos (with default settings)
Planned actions:
* Create an APFS volume `Nix Store` for Nix on `disk5` and add it to `/etc/fstab` mounting on `/nix`
* Fetch `https://releases.nixos.org/nix/nix-2.32.4/nix-2.32.4-aarch64-darwin.tar.xz` to `/nix/temp-install-dir`
* Create a directory tree in `/nix`
* Synchronize /nix/var ownership
* Move the downloaded Nix into `/nix`
* Synchronize /nix/store ownership
* Create build users (UID 351-382) and group (GID 350)
* Configure Time Machine exclusions
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Setup the default system channel
* Configure the shell profiles
* Configuring zsh to support using Nix in non-interactive shells
* Create a `launchctl` plist to put Nix into your PATH
* Configure upstream Nix daemon service
* Remove directory `/nix/temp-install-dir`
Proceed? ([Y]es/[n]o/[e]xplain):
INFO Step: Create an APFS volume `Nix Store` for Nix on `disk5` and add it to `/etc/fstab` mounting on `/nix`
INFO Step: Provision Nix
INFO Step: Create build users (UID 351-382) and group (GID 350)
INFO Step: Configure Time Machine exclusions
INFO Step: Configure Nix
INFO Step: Configuring zsh to support using Nix in non-interactive shells
INFO Step: Create a `launchctl` plist to put Nix into your PATH
INFO Step: Configure upstream Nix daemon service
INFO Step: Remove directory `/nix/temp-install-dir`
WARN SelfTest([ShellFailed { shell: Sh, command: "\"sh\" \"-lc\" \"exec nix build --option substitute false --option post-build-hook \\'\\' --no-link --expr \\'derivation { name = \\\"self-test-sh-1764806026516\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "error:\n … while calling the 'derivationStrict' builtin\n at «nix-internal»/derivation-internal.nix:37:12:\n 36|\n 37| strict = derivationStrict drvAttrs;\n | ^\n 38|\n\n … while evaluating derivation 'self-test-sh-1764806026516'\n whose name attribute is located at «string»:1:14\n\n error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory\n" } }, ShellFailed { shell: Bash, command: "\"bash\" \"-lc\" \"exec nix build --option substitute false --option post-build-hook \\'\\' --no-link --expr \\'derivation { name = \\\"self-test-bash-1764806026623\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "error:\n … while calling the 'derivationStrict' builtin\n at «nix-internal»/derivation-internal.nix:37:12:\n 36|\n 37| strict = derivationStrict drvAttrs;\n | ^\n 38|\n\n … while evaluating derivation 'self-test-bash-1764806026623'\n whose name attribute is located at «string»:1:14\n\n error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory\n" } }, ShellFailed { shell: Zsh, command: "\"zsh\" \"-ic\" \"exec nix build --option substitute false --option post-build-hook \\'\\' --no-link --expr \\'derivation { name = \\\"self-test-zsh-1764806026669\\\"; system = \\\"aarch64-darwin\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\"", output: Output { status: ExitStatus(unix_wait_status(256)), stdout: "", stderr: "error:\n … while calling the 'derivationStrict' builtin\n at «nix-internal»/derivation-internal.nix:37:12:\n 36|\n 37| strict = derivationStrict drvAttrs;\n | ^\n 38|\n\n … while evaluating derivation 'self-test-zsh-1764806026669'\n whose name attribute is located at «string»:1:14\n\n error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory\n" } }])
Nix was installed successfully!
To get started using Nix, open a new shell or run `. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh`
ec2-user@ip-172-31-33-126 ~ %
Shared connection to 54.164.171.156 closed.
[18:54] Bernardo-Meurer-Costa-MacBook~ $ ssh ec2-user@54.164.171.156
Last login: Wed Dec 3 23:43:12 2025 from 98.116.175.178
┌───┬──┐ __| __|_ )
│ ╷╭╯╷ │ _| ( /
│ └╮ │ ___|\___|___|
│ ╰─┼╯ │ Amazon EC2
└───┴──┘ macOS Tahoe 26.0.1
ec2-user@ip-172-31-33-126 ~ % nix
error: no subcommand specified
Try 'nix --help' for more information.
ec2-user@ip-172-31-33-126 ~ % ps aux | grep nix
ec2-user 1629 0.0 0.0 435300256 1392 s000 S+ 11:54PM 0:00.01 grep nix
ec2-user@ip-172-31-33-126 ~ % ps aux | grep nix
ec2-user 1631 0.0 0.0 435299888 1392 s000 S+ 11:54PM 0:00.01 grep nix
ec2-user@ip-172-31-33-126 ~ % ls /nix/var/nix
builds daemon-socket db gc.lock gcroots profiles temproots userpool
ec2-user@ip-172-31-33-126 ~ % ls /nix/var/nix/daemon-socket
ec2-user@ip-172-31-33-126 ~ %
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels