Monolithic repository for my homelab
Go to file
2022-05-11 21:42:52 -07:00
docs Obsoleted by #27 2022-05-11 21:42:50 -07:00
jafner-tools #21 Standardize container names 2022-04-29 11:49:50 -07:00
nas Add oversize file handling 2022-04-11 21:53:56 -07:00
router Delete poor attempt at cron job 2022-02-26 01:41:21 -08:00
seedbox Fix linebreak 2022-05-10 12:02:47 -07:00
server Init working 2022-05-11 13:21:25 -07:00
.gitignore Add gitignore for secrets 2022-04-28 12:38:39 -07:00
.gitlab-ci.yml Update .gitlab-ci.yml file 2022-05-12 03:37:04 +00:00
.gitmodules Add ass/ass submodule 2022-02-25 21:27:31 -08:00
README.md Minor 2022-05-11 01:25:40 -07:00

homelab

Monolithic repository for my homelab

Getting an SSH Key

  1. TMP=$(echo "$HOME/.ssh/$(echo $HOSTNAME)_id_rsa") && ssh-keygen -b 8192 -t rsa -C "$USER@$HOSTNAME" -f $TMP -N "" && echo "IdentityFile $TMP" > $HOME/.ssh/config && cat $(echo "$TMP").pub
  2. Go to Jafner -> Preferences -> SSH Keys.
  3. Add the pubkey and save.

Pulling Only Relevant Subdir

Per: https://stackoverflow.com/questions/4114887

~$ mkdir homelab && cd homelab/
git init
git config core.sparseCheckout true
git remote add -f origin ssh://git@gitlab.jafner.net:2229/Jafner/homelab.git
echo "<deployment name; e.g. server/>" > .git/info/sparse-checkout
git checkout main

Disabling Sparse Checkout

To disable sparse checkout, simply run git sparse-checkout disable. With this, it can also be re-eneabled with git sparse-checkout init. You can use these two commands to toggle sparse checkout. Per: https://stackoverflow.com/questions/36190800/how-to-disable-sparse-checkout-after-enabled