install: preserve PATH, as it is needed for Nix upgrades

Some people seem to lack nix in their PATH as root. This should let
them still upgrade to Lix.
This commit is contained in:
puck 2024-05-19 21:50:24 +00:00
parent 7a625db723
commit 3e4f344fe3

View file

@ -69,7 +69,7 @@ of the `upgrade-nix` command.
Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the following command: Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the following command:
```sh ```sh
sudo nix run \ sudo --preserve-env=PATH nix run \
--experimental-features "nix-command flakes" \ --experimental-features "nix-command flakes" \
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \ --extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1' -- \ 'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.1' -- \