daemonix approach
This commit is contained in:
parent
8d362d13b2
commit
d4e84b0e41
7 changed files with 48 additions and 38 deletions
13
files/scripts/install-nix.sh
Executable file
13
files/scripts/install-nix.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/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
|
||||
Loading…
Add table
Add a link
Reference in a new issue