27 lines
735 B
Bash
27 lines
735 B
Bash
#!/usr/local/env bash
|
|
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
|
|
|
|
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
|