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.
 
 
 
 

22 lines
488 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
wget https://git.junickim.me/junikimm717/guixconfigs/raw/branch/master/config.scm || 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