fix(apply): target specific system and timestamp backups

This commit is contained in:
johannes committed 2026-08-16 16:36:17 +02:00
1 parent 1c127b29e7
commit 83216e7b64
7 files changed
+18 -11

No files matched your search

+6 -1
View File
@@ -11,5 +11,10 @@ nu -c "source ~/.dotfiles/config/nushell/env.nu; source ~/.dotfiles/config/nushe
}
echo "=> Smoke test passed. Applying home-manager configuration..."
home-manager switch --flake . -b backup
if [[ "$(uname -s)" == "Darwin" ]]; then
TARGET="mac"
else
TARGET="linux"
fi
home-manager switch --flake .#$TARGET -b "backup-$(date +%s)"
echo "=> Done."