From 3e4f344fe37009e80fefb01fdf5540fb66016c39 Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Sun, 19 May 2024 21:50:24 +0000 Subject: [PATCH] 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' -- \