From fad93b0a6c77ee54bb2ed496a17d0af25becb24c Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Tue, 12 Dec 2023 12:20:30 +0100 Subject: [PATCH] void --- install-guix-on-void.bash | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/install-guix-on-void.bash b/install-guix-on-void.bash index 047cb82..2ce0a75 100644 --- a/install-guix-on-void.bash +++ b/install-guix-on-void.bash @@ -1,8 +1,11 @@ #!/usr/local/env bash -sudo xbps-install -SuA nscd wget curl brightnessctl +sudo xbps-install -SuA nscd wget curl brightnessctl pam_rundir seatd polkit mdevd mesa-dri sudo ln -sf /etc/sv/nscd /var/service/ sudo bash <<< curl https://git.savannah.gnu.org/cgit/guix.git/plain/etc/guix-install.sh +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 sudo mkdir -p /etc/sv/guix-daemon/log sudo cat <<'EOF' > /etc/sv/guix-daemon/run #!/bin/sh @@ -19,6 +22,28 @@ sudo chmod +x /etc/sv/guix-daemon/log/run sudo ln -sf /etc/sv/guix-daemon /var/service/ +# Shepherd Daemon +sudo mkdir -p /etc/sv/shepherd/log +sudo cat < /etv/sv/shepherd/run +#!/bin/sh +exec 2>&1 +exec $(which shepherd) +EOF +sudo chmod +x /etc/sv/shepherd/run + +sudo cat < /etc/sv/shepherd/log/run +#!/bin/sh +exec vlogger -t shepherd -p daemon +EOF +sudo chmod +x /etc/sv/shepherd/log/run + +sudo ln -sf /etc/sv/shepherd /var/service/ + +# Enable Daemons + +for DAEMON in guix-daemon shepherd NetworkManager acpid dbus nscd polkitd seatd mdevd + +# Profile Initialization sudo cat <<'EOF' >> ~/.profile GUIX_PROFILE="/home/zilti/.config/guix/current" . "$GUIX_PROFILE/etc/profile"