Install on existing system fails with "sudo: nix: command not found" #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
beforenix run
:I'm not sure why
--preserve-env=PATH
doesn't work for me on its own.I encountered this error too, on Ubuntu 24.04.2 LTS (Sudo version 1.9.15p5)
Hardcoding the path to
nix
was not enough, that just changed the error toI managed to avoid both errors by adapting this answer from the NixOS discourse to use Lix's arguments
i.e. by running the command inside a
sudo -i
shell: