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
489 B

2 years ago
2 years ago
2 years ago
2 years ago
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. wget https://git.junickim.me/junikimm717/guixconfigs/raw/branch/master/config.scm || exit 1
  13. sed -i "s/guixbox/$HOSTNAME/g" ./config.scm
  14. cp ./config.scm /mnt/etc/
  15. #guix pull || exit 1
  16. guix system init /mnt/etc/config.scm /mnt