bootstrap 852 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #! /usr/bin/env bash
  2. # vim: ft=sh
  3. # Make sure to exit this script on any failure.
  4. set -e
  5. stow-subdirs-in () {
  6. cd "$1"
  7. for dir in */; do stow --no-folding "$dir"; done
  8. cd -
  9. }
  10. # Go to where this script is located.
  11. cd $(dirname "$(readlink -f "$0")")
  12. # Add some remotes to our local nixpkgs clone.
  13. git clone https://vyp@github.com/vyp/nixpkgs ../nixpkgs
  14. cd ../nixpkgs
  15. git remote add channels https://github.com/nixos/nixpkgs-channels
  16. git remote add main https://github.com/nixos/nixpkgs
  17. cd -
  18. # Get some more necessary repositories.
  19. git clone https://vyp@github.com/vyp/scripts ../code/scripts
  20. git clone https://vyp@github.com/vyp/data ../data
  21. # Finally stow now that we have everything we should need.
  22. stow-subdirs-in .
  23. stow-subdirs-in ../data
  24. # Lastly, reset the font cache to setup fonts.
  25. fc-cache -fv
  26. # Local Variables:
  27. # mode: sh
  28. # End: