From 1889baff16c08ddf2382d95ca18caa37001d5971 Mon Sep 17 00:00:00 2001 From: Ingo Reitz Date: Thu, 18 Apr 2024 16:28:21 +0200 Subject: Do not run if NixOS is detected --- install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install.sh b/install.sh index ff79949..97c7e98 100755 --- a/install.sh +++ b/install.sh @@ -20,6 +20,10 @@ elif [ -f /usr/bin/dnf ]; then distro="fedora" elif [ -f /sbin/apk ]; then distro="alpine" +elif grep 'ID=nixos' /etc/os-release; then + echo "NixOS is not supported by this script." + echo "Bailing out..." + exit 1 fi if [ -f /usr/bin/sudo ]; then -- cgit 1.4.1-2-gfad0