Gnu Guix Rice (ofc with stow)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
520 B

#!/bin/bash
cfdisk /dev/sda || exit 1
mkfs.ext4 -L guix /dev/sda2 || exit 1
mount /dev/sda2 /mnt || exit 1
mkdir -p /mnt/etc || exit 1
herd start cow-store /mnt
read -rp "Hostname: " HOSTNAME
if test -z "$HOSTNAME"; then
echo "Empty hostname."
exit 1
fi
guix package -i git || exit 1
git clone https://git.junickim.me/junikimm717/guixconfigs || exit 1
cd guixconfigs || exit 1
sed -i "s/guixbox/$HOSTNAME/g" ./config.scm
cp ./config.scm /mnt/etc/
guix pull || exit 1
guix system init /mnt/etc/config.scm /mnt