guixconfig/install-guix-on-void.bash

28 lines
735 B
Bash
Raw Normal View History

2023-12-06 17:10:44 +00:00
#!/usr/local/env bash
2023-12-06 21:23:52 +00:00
sudo xbps-install -SuA nscd wget curl brightnessctl
sudo ln -sf /etc/sv/nscd /var/service/
sudo bash <<< curl https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
2023-12-06 17:10:44 +00:00
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