From fc9ea2466374a7e60c4c9fffa6b2fa5feeb6258d Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Wed, 27 Mar 2024 20:12:37 +0000 Subject: [PATCH] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 9010c2e6..9ac420e3 100755 --- a/install.sh +++ b/install.sh @@ -26,13 +26,13 @@ fi if ! nix --version &>/dev/null; then echo -e "${YELLOW}[E] Nix not found.${ENDCOLOR}" echo -e "${GREEN}[+] Installing the Nix package manager...${ENDCOLOR}" - curl -L https://nixos.org/nix/install | sh + sh <(curl -L https://nixos.org/nix/install) --daemon . $HOME/.nix-profile/etc/profile.d/nix.sh echo -e "${GREEN}[I] Installed Nix.${ENDCOLOR}" fi # Fix to add GUI nix-env apps to the GNOME launcher without having to restart -ln -s "$HOME/.nix-profile/share/applications" "$HOME/.local/share/applications/nix-env" +sudo ln -s "$HOME/.nix-profile/share/applications" "$HOME/.local/share/applications/nix-env" # ============== HOME MANAGER ==============