Update git-sync-all script to include home-manager config

This commit is contained in:
Evie Litherland-Smith 2024-05-11 17:36:01 +01:00
parent 44f1412ace
commit d907609508

View file

@ -26,13 +26,15 @@ for i in "${!SYNC_DIRS[@]}"; do
)
done
# Pull NixOS and Emacs config if simple fast-forward
# Pull NixOS, home-manager and Emacs configs if simple fast-forward
PULL_DIRS=(
"/etc/nixos"
"${XDG_CONFIG_HOME:-$HOME/.config}/home-manager"
"${XDG_CONFIG_HOME:-$HOME/.config}/emacs"
)
PULL_URLS=(
"https://git.xenia.me.uk/pixelifytica/nixos.git"
"https://git.xenia.me.uk/pixelifytica/home-manager.git"
"https://git.xenia.me.uk/pixelifytica/emacs.git"
)
for i in "${!PULL_DIRS[@]}"; do
@ -51,5 +53,6 @@ for i in "${!PULL_DIRS[@]}"; do
else
echo "Not syncing repo $DIRECTORY on branch $(git branch --show-current)"
fi
git status --porcelain
)
done