extract SSH host config to a secrets repo

This commit is contained in:
Trolli Schmittlauch 2020-04-05 19:19:16 +02:00
parent 17b7854c03
commit 7e8695c0bd
4 changed files with 17 additions and 1 deletions

View file

@ -8,7 +8,7 @@ HOMECONFIGPATH="${HOME}/.config/nixpkgs"
NIXOSCONFIGPATH="/etc/nixos"
mkdir -p "${HOMECONFIGPATH}"
for F in `find ./home -mindepth 1 -maxdepth 1`; do
for F in `find ./home -mindepth 1 -maxdepth 2`; do
ABS_F=`readlink -f "${F}"`
ln -s "$ABS_F" "${HOMECONFIGPATH}/`basename ${F}`"
done