deinonyxus/scripts/install-nix.sh

14 lines
403 B
Bash
Raw Normal View History

2025-12-22 21:13:22 +02:00
#!/usr/bin/env bash
set -euo pipefail
rpm_url="https://nix-community.github.io/nix-installers/nix/x86_64/nix-multi-user-2.24.10.rpm"
install -d /usr/share/nix-store /var/lib/nix-store /var/cache/nix-store /nix
dnf install -y "$rpm_url"
# Move the pre-populated store out of /nix so it can serve as the immutable lowerdir.
if compgen -G "/nix/*" >/dev/null; then
mv /nix/* /usr/share/nix-store/
fi