From 142fc76c5599cf95c9a98c3005de6d51ad403d86 Mon Sep 17 00:00:00 2001 From: 57_Wolve <57_wolve@private.email> Date: Wed, 14 Jan 2026 18:04:21 +0000 Subject: [PATCH] Update scripts/nix_bootstrap.sh --- scripts/nix_bootstrap.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/nix_bootstrap.sh b/scripts/nix_bootstrap.sh index d18601d..ad728d1 100644 --- a/scripts/nix_bootstrap.sh +++ b/scripts/nix_bootstrap.sh @@ -5,8 +5,9 @@ set -e echo "Installing Nix package manager..." # Check if running as root -if [ "$EUID" -eq 0 ]; then - echo "Warning: Running as root. Multi-user installation recommended for non-root users." +if [ "$EUID" -ne 0 ]; then + echo "Error: This script must be run as root" >&2 + exit 1 fi # Install xz-utils if not present (required for decompressing Nix tarball) @@ -27,7 +28,7 @@ if ! command -v xz &> /dev/null; then fi # Download and run the Nix installer (multi-user mode with daemon) -curl -L https://nixos.org/nix/install | sh -s -- --daemon +curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install | sh -s -- --daemon # Source Nix profile if [ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh ]; then