diff --git a/system/home/scripts/default.nix b/system/home/scripts/default.nix index c768a3ba..643ce69c 100644 --- a/system/home/scripts/default.nix +++ b/system/home/scripts/default.nix @@ -2,7 +2,6 @@ { home.packages = [ (pkgs.writeShellScriptBin "esync" (builtins.readFile ./shell/esync.sh)) - (pkgs.writeShellScriptBin "gsync" (builtins.readFile ./shell/gsync.sh)) (pkgs.writeShellScriptBin "clean-config" (builtins.readFile ./shell/clean-config.sh)) (pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh)) (pkgs.writeShellScriptBin "xdg-query-program" (builtins.readFile ./shell/xdg-query-program.sh)) diff --git a/system/home/scripts/shell/gsync.sh b/system/home/scripts/shell/gsync.sh deleted file mode 100755 index 17474583..00000000 --- a/system/home/scripts/shell/gsync.sh +++ /dev/null @@ -1,31 +0,0 @@ -# Sync common directories, setting url to ensure it's up-to-date first -SYNC_DIRS=( - "$HOME/.password-store/" - "$HOME/Documents/org/" - "$HOME/Documents/library/" -) -SYNC_URLS=( - "https://git.xenia.me.uk/pixelifytica/pass.git" - "https://git.xenia.me.uk/pixelifytica/org.git" - "https://git.xenia.me.uk/pixelifytica/library.git" -) - -for i in "${!SYNC_DIRS[@]}"; do - DIRECTORY="${SYNC_DIRS[$i]}" - URL="${SYNC_URLS[$i]}" - echo "--- sync: $DIRECTORY ---" - if [ ! -d "$DIRECTORY" ]; then - git clone "$URL" "$DIRECTORY" - fi - ( - cd "$DIRECTORY" || exit - git remote set-url origin "$URL" - if [ "$(git branch --show-current)" = "main" ]; then - git branch --set-upstream-to=origin/main main - fi - git pull --ff --ff-only - git submodule update --remote --recursive - git-sync -ns - git status --porcelain - ) -done