Skip to content

Commit a1fd3a6

Browse files
stackptrclaude
andcommitted
test: add deliberately failing activation script to test deploy-rs rollback
Adds a NixOS activation script that exits with failure to verify that deploy-rs magic rollback works correctly. This should be reverted after testing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a4e3145 commit a1fd3a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

hosts/glyph/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,11 @@
5454
# Beets library database (beets configured in home-manager)
5555
rc.backup.paths = ["/home/mu/.config/beets/library.db"];
5656

57+
# Deliberately fail activation to test deploy-rs magic rollback
58+
system.activationScripts.test-rollback = ''
59+
echo "Testing deploy-rs rollback: this activation will now fail deliberately"
60+
exit 1
61+
'';
62+
5763
system.stateVersion = "24.05";
5864
}

0 commit comments

Comments
 (0)