nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

<autogenerated-issue> Failed to install Determinate Nix on Steam Deck

Open tlsctf2 opened this issue 6 months ago • 2 comments

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `provision_nix` errored
   3: Action `create_nix_tree` errored
   4: Action `create_directory` errored
   5: Creating directory `/nix/var`
   6: No such file or directory (os error 2)

Metadata

key value
version 3.6.2
os linux
arch x86_64

tlsctf2 avatar Jun 09 '25 18:06 tlsctf2

Seeing a similar issue but just a different directory that the failure happens at:

(deck@steamdeck ~)$ curl -fsSL https://install.determinate.systems/nix | sh -s -- install --determinate
info: downloading installer https://install.determinate.systems/nix/tag/v3.6.6/nix-installer-x86_64-linux
 INFO nix-installer v3.6.6
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
 INFO nix-installer v3.6.6
Nix install plan (v3.6.6)
Planner: steam-deck

Configured settings:
* determinate_nix: true

Planned actions:
* Run `systemctl daemon-reload`
* Create or overwrite file `/etc/atomic-update.conf.d/nix-installer.conf`
* Create or overwrite file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
* Install Determinate Nixd
* Extract the bundled Nix (originally from /nix/store/ddb2lkqyfgv2f8ia33zayp2nb8qhql5w-nix-binary-tarball-3.6.6/nix-3.6.6-x86_64-linux.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 30001-30032) and group (GID 30000)
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Configure the shell profiles
* Configure upstream Nix daemon service
* Enable (and start) the systemd unit `ensure-symlinked-units-resolve.service`
* Remove directory `/nix/temp-install-dir`
* Run `systemctl daemon-reload`


Proceed? ([Y]es/[n]o/[e]xplain): Y
 INFO Step: Run `systemctl daemon-reload`
 INFO Step: Clean the `/home/.steamos/offload/nix` directory
 INFO Step: Ensure SteamOS's `/nix` directory exists
 INFO Step: Enable (and start) the systemd unit `nix.mount`
 INFO Step: Create or overwrite file `/etc/atomic-update.conf.d/nix-installer.conf`
 INFO Step: Create or overwrite file `/etc/systemd/system/ensure-symlinked-units-resolve.service`
 INFO Step: Install Determinate Nixd
ERROR Error saving receipt: RecordingReceipt("/nix/receipt.tmp", Os { code: 2, kind: NotFound, message: "No such file or directory" })
ERROR 
   0: Install failure
   1: Error executing action
   2: Action `provision_determinate_nixd` errored
   3: Write path `/usr/local/bin/determinate-nixd`
   4: Read-only file system (os error 30)

Location:
   /build/nix-installer-source/src/cli/subcommand/install/mod.rs:240

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Consider reporting this error using this URL: https://github.com/DeterminateSystems/nix-installer/issues/new?title=%3Cautogenerated-issue%3E&body=%23%23+Error%0A%60%60%60%0AError%3A+%0A+++0%3A+Install+failure%0A+++1%3A+Error+executing+action%0A+++2%3A+Action+%60provision_determinate_nixd%60+errored%0A+++3%3A+Write+path+%60%2Fusr%2Flocal%2Fbin%2Fdeterminate-nixd%60%0A+++4%3A+Read-only+file+system+%28os+error+30%29%0A%60%60%60%0A%0A%23%23+Metadata%0A%7Ckey%7Cvalue%7C%0A%7C--%7C--%7C%0A%7C**version**%7C3.6.6%7C%0A%7C**os**%7Clinux%7C%0A%7C**arch**%7Cx86_64%7C%0A
Installation failure, offering to revert...
Nix uninstall plan (v3.6.6)

kourtni avatar Jun 18 '25 19:06 kourtni

Just a workaround, but I'm pretty sure this ended up working for me if I disabled the RO-filesystem.

rasmus-kirk avatar Jun 23 '25 08:06 rasmus-kirk