guixconfig/install-guix-on-void.bash
2023-12-06 18:10:44 +01:00

26 lines
676 B
Bash

#!/usr/local/env bash
sudo xbps-install -SuA wget curl
curl https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh | sudo bash
sudo mkdir -p /etc/sv/guix-daemon/log
sudo cat <<'EOF' > /etc/sv/guix-daemon/run
#!/bin/sh
exec 2>&1
exec ~root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
EOF
sudo chmod +x /etc/sv/guix-daemon/run
sudo cat <<EOF > /etc/sv/guix-daemon/log/run
#!/bin/sh
exec vlogger -t guix-daemon -p daemon
EOF
sudo chmod +x /etc/sv/guix-daemon/log/run
sudo ln -sf /etc/sv/guix-daemon /var/service/
sudo cat <<'EOF' >> ~/.profile
GUIX_PROFILE="/home/zilti/.config/guix/current"
. "$GUIX_PROFILE/etc/profile"
EOF
guix pull