#!/usr/bin/env bash # One-time move from ~/git/daemon-sec-dotfiles to ~/NixDaemon/dotfiles: the # links now point into the flake, so the state apps wrote beside their config in # the old checkout (Vesktop's login, jj's per-repo config, Noctalia's generated # colours) is copied across once. Existing files are never overwritten, and once # the old checkout is gone this does nothing. set -eu old="$1/home" new="$2/home" [ -d "$old" ] && [ -d "$new" ] || exit 0 for p in \ .config/vesktop/sessionData .config/vesktop/Crashpad \ .config/vesktop/settings.json .config/vesktop/state.json \ .config/jj/repos .config/uncover/config.yaml \ .config/zathura/noctaliarc .config/alacritty/themes; do if [ -e "$old/$p" ] && [ ! -e "$new/$p" ]; then printf 'Carrying %s into the NixDaemon dotfiles\n' "$p" mkdir -p -- "$(dirname -- "$new/$p")" cp -a -- "$old/$p" "$new/$p" fi done