.
This commit is contained in:
parent
24dc31df05
commit
143aea958c
1 changed files with 22 additions and 20 deletions
|
@ -1,53 +1,55 @@
|
||||||
#!/usr/local/env bash
|
#!/usr/local/env bash
|
||||||
sudo xbps-install -SuA nscd wget curl brightnessctl pam_rundir seatd polkit mdevd mesa-dri
|
xbps-install -SuA wget curl brightnessctl pam_rundir seatd polkit mdevd mesa-dri gnupg2 xz
|
||||||
sudo ln -sf /etc/sv/nscd /var/service/
|
ln -sf /etc/sv/nscd /var/service/
|
||||||
sudo bash <<< curl https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh
|
curl -L https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh > guix-install.sh
|
||||||
|
which guix || bash guix-install.sh
|
||||||
|
guix install shepherd
|
||||||
|
|
||||||
sed -i '/pam_rundir/{h;s/^.*$/-session optional pam_rundir.so/};${x;/^$/{s//-session optional pam_rundir.so/;H};x}' /etc/pam.d/system-login
|
sed -i '/pam_rundir/{h;s/^.*$/-session optional pam_rundir.so/};${x;/^$/{s//-session optional pam_rundir.so/;H};x}' /etc/pam.d/system-login
|
||||||
|
|
||||||
# Guix Daemon
|
# Guix Daemon
|
||||||
sudo mkdir -p /etc/sv/guix-daemon/log
|
mkdir -p /etc/sv/guix-daemon/log
|
||||||
sudo cat <<'EOF' > /etc/sv/guix-daemon/run
|
cat <<'EOF' > /etc/sv/guix-daemon/run
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec ~root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
|
exec ~root/.config/guix/current/bin/guix-daemon --build-users-group=guixbuild
|
||||||
EOF
|
EOF
|
||||||
sudo chmod +x /etc/sv/guix-daemon/run
|
chmod +x /etc/sv/guix-daemon/run
|
||||||
|
|
||||||
sudo cat <<EOF > /etc/sv/guix-daemon/log/run
|
cat <<EOF > /etc/sv/guix-daemon/log/run
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec vlogger -t guix-daemon -p daemon
|
exec vlogger -t guix-daemon -p daemon
|
||||||
EOF
|
EOF
|
||||||
sudo chmod +x /etc/sv/guix-daemon/log/run
|
chmod +x /etc/sv/guix-daemon/log/run
|
||||||
|
|
||||||
sudo ln -sf /etc/sv/guix-daemon /var/service/
|
ln -sf /etc/sv/guix-daemon /var/service/
|
||||||
|
|
||||||
# Shepherd Daemon
|
# Shepherd Daemon
|
||||||
sudo mkdir -p /etc/sv/shepherd/log
|
mkdir -p /etc/sv/shepherd/log
|
||||||
sudo cat <<EOF > /etv/sv/shepherd/run
|
cat <<EOF > /etc/sv/shepherd/run
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec $(which shepherd)
|
exec $(find /gnu -wholename '*/bin/shepherd')
|
||||||
EOF
|
EOF
|
||||||
sudo chmod +x /etc/sv/shepherd/run
|
chmod +x /etc/sv/shepherd/run
|
||||||
|
|
||||||
sudo cat <<EOF > /etc/sv/shepherd/log/run
|
cat <<EOF > /etc/sv/shepherd/log/run
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
exec vlogger -t shepherd -p daemon
|
exec vlogger -t shepherd -p daemon
|
||||||
EOF
|
EOF
|
||||||
sudo chmod +x /etc/sv/shepherd/log/run
|
chmod +x /etc/sv/shepherd/log/run
|
||||||
|
|
||||||
sudo ln -sf /etc/sv/shepherd /var/service/
|
ln -sf /etc/sv/shepherd /var/service/
|
||||||
|
|
||||||
# Enable Daemons
|
# Enable Daemons
|
||||||
|
|
||||||
for DAEMON in guix-daemon shepherd NetworkManager acpid dbus nscd polkitd seatd mdevd
|
for DAEMON in guix-daemon shepherd NetworkManager acpid dbus nscd polkitd seatd mdevd
|
||||||
|
|
||||||
# Profile Initialization
|
# Profile Initialization
|
||||||
sudo cat <<'EOF' >> ~/.profile
|
cat <<'EOF' >> ~/.profile
|
||||||
GUIX_PROFILE="/home/zilti/.config/guix/current"
|
GUIX_PROFILE="/home/zilti/.config/guix/current"
|
||||||
. "$GUIX_PROFILE/etc/profile"
|
. "$GUIX_PROFILE/etc/profile"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
guix pull
|
#guix pull
|
||||||
guix home reconfigure ./home/home-configuration.scm
|
#guix home reconfigure ./home/home-configuration.scm
|
||||||
|
|
Loading…
Reference in a new issue