dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 1ce6727a5a1518d1ea053a230761f42da30c7d25
parent fc03b3c23d29072c6661259eafcf794ab5d0bdaa
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat,  9 Jun 2018 04:31:26 +0000

docker: Add bin/setup-guix

Diffstat:
docker/bin/setup-guix | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/docker/bin/setup-guix b/docker/bin/setup-guix @@ -0,0 +1,24 @@ +#!/bin/bash + +# Setup build group and users. +groupadd --system guixbuild +for i in `seq -w 1 10`; + do + useradd -g guixbuild -G guixbuild \ + -d /var/empty -s `which nologin` \ + -c "Guix build user $i" --system \ + guixbuilder$i; + done + +# All binary package installs +export GUIX_PROFILE=$HOME/.guix-profile +source $GUIX_PROFILE/etc/profile + +guix archive \ + --authorize < /root/.guix-profile/share/guix/hydra.gnu.org.pub + +# Add GUIX environment vars. to .bashrc +BASHRC=/root/.bashrc +echo 'GUIX_LOCPATH="/root/.guix-profile/lib/locale"' >> $BASHRC +echo 'export GUIX_PROFILE="/root/.guix-profile"' >> $BASHRC +echo '. /root/.guix-profile/etc/profile' >> $BASHRC