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

2 years ago
  1. #!/bin/bash
  2. cfdisk /dev/sda || exit 1
  3. mkfs.ext4 -L guix /dev/sda2 || exit 1
  4. mount /dev/sda2 /mnt || exit 1
  5. mkdir -p /mnt/etc || exit 1
  6. herd start cow-store /mnt
  7. read -rp "Hostname: " HOSTNAME
  8. if test -z "$HOSTNAME"; then
  9. echo "Empty hostname."
  10. exit 1
  11. fi
  12. guix package -i git || exit 1
  13. git clone https://git.junickim.me/junikimm717/guixconfigs || exit 1
  14. cd guixconfigs || exit 1
  15. sed -i "s/guixbox/$HOSTNAME/g" ./config.scm
  16. cp ./config.scm /mnt/etc/
  17. guix pull || exit 1
  18. guix system init /mnt/etc/config.scm /mnt