fix(apply): target specific system and timestamp backups
This commit is contained in:
1 parent
1c127b29e7
commit
83216e7b64
7 files changed
+18
-11
No files matched your search
@@ -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."
|
||||
Reference in new issue
Block a user