Compare commits

...

3 commits

Author SHA1 Message Date
Qyriad 0d006b3f80 Merge pull request 'install: fix upgrade-nix command' (#24) from fix-upgrade-nix-command into main
Reviewed-on: #24
Reviewed-by: Qyriad <qyriad@fastmail.com>
2024-05-19 22:07:33 +00:00
puck 3e4f344fe3 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.
2024-05-19 21:50:24 +00:00
puck 7a625db723 install: fix upgrade-nix command
upgrade-nix needs to be passed the replacement substituter too.
2024-05-19 21:35:02 +00:00

View file

@ -69,12 +69,12 @@ of the `upgrade-nix` command.
Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the following command:
```sh
sudo nix run \
sudo --preserve-env=PATH nix run \
--experimental-features "nix-command flakes" \
--extra-substituters https://cache.lix.systems \
--trusted-public-keys "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o=" \
'git+https://git@git.lix.systems/lix-project/lix?ref=refs/tags/2.90-beta.0' -- \
upgrade-nix
--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' -- \
upgrade-nix \
--extra-substituters https://cache.lix.systems --extra-trusted-public-keys "cache.lix.systems:aBnZUw8zA7H35Cz2RyKFVs3H4PlGTLawyY5KRbvJR8o="
```
You should now have upgraded to Lix! You can verify this by asking the `nix` command