From a1fd3a6e0eaa5c9c4fb7f1d361313f50b5ca7ed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=BF=20corey=20=28they/them=29?= Date: Wed, 11 Mar 2026 14:04:18 -0700 Subject: [PATCH] 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 --- hosts/glyph/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/glyph/default.nix b/hosts/glyph/default.nix index f5a2975..b161513 100644 --- a/hosts/glyph/default.nix +++ b/hosts/glyph/default.nix @@ -54,5 +54,11 @@ # Beets library database (beets configured in home-manager) rc.backup.paths = ["/home/mu/.config/beets/library.db"]; + # Deliberately fail activation to test deploy-rs magic rollback + system.activationScripts.test-rollback = '' + echo "Testing deploy-rs rollback: this activation will now fail deliberately" + exit 1 + ''; + system.stateVersion = "24.05"; }