From 7a625db72377fd56af05bb415cb0724269c64ba8 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Sun, 19 May 2024 21:35:02 +0000 Subject: [PATCH 1/2] install: fix upgrade-nix command upgrade-nix needs to be passed the replacement substituter too. --- content/install.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/install.md b/content/install.md index aa7f1c3e..582f0033 100644 --- a/content/install.md +++ b/content/install.md @@ -71,10 +71,10 @@ Thanks to Nix, we can actually ask Lix to upgrade your system directly. Run the ```sh sudo 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 From 3e4f344fe37009e80fefb01fdf5540fb66016c39 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Sun, 19 May 2024 21:50:24 +0000 Subject: [PATCH 2/2] 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. --- content/install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install.md b/content/install.md index 582f0033..beedc871 100644 --- a/content/install.md +++ b/content/install.md @@ -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: ```sh -sudo nix run \ +sudo --preserve-env=PATH nix run \ --experimental-features "nix-command flakes" \ --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' -- \