Install on existing system fails with "sudo: nix: command not found" #35

Open
opened 2024-08-24 22:40:51 +00:00 by libanp · 0 comments

Distro: Bluefin (Fedora Linux 40.20240817.0 (Silverblue))
Original nix install method: Determinate systems installer

When trying to follow the instructions for converting an existing system at https://lix.systems/install/, the command fails with: sudo: nix: command not found.

The command did run successfully when adding env before nix run:

sudo --preserve-env=PATH env nix run \
    --experimental-features "nix-command flakes" \
    --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
    'git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.91.0' -- \
    upgrade-nix \
    --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="

I'm not sure why --preserve-env=PATH doesn't work for me on its own.

**Distro:** Bluefin (Fedora Linux 40.20240817.0 (Silverblue)) **Original nix install method:** Determinate systems installer When trying to follow the instructions for converting an existing system at https://lix.systems/install/, the command fails with: `sudo: nix: command not found`. The command did run successfully when adding `env` before `nix run`: ``` sudo --preserve-env=PATH env nix run \ --experimental-features "nix-command flakes" \ --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \ 'git+https://git.lix.systems/lix-project/lix?ref=refs/tags/2.91.0' -- \ upgrade-nix \ --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" ``` I'm not sure why `--preserve-env=PATH` doesn't work for me on its own.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-website#35
No description provided.