diff options
| author | Preston Pan <ret2pop@nullring.xyz> | 2026-03-06 02:04:11 -0800 |
|---|---|---|
| committer | Preston Pan <ret2pop@nullring.xyz> | 2026-03-06 02:04:11 -0800 |
| commit | 1ff76f80c39fd928416430852a8e9efad9983370 (patch) | |
| tree | 6dde9358c42cd920b89d1c015bdb6c42a9b1c7cc /flake.nix | |
| parent | f268b25f6a64ebc7c52e0cc1a2d82efbf1a6e207 (diff) | |
merge
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -92,12 +92,18 @@ fi pass_filenames = false; always_run = true; entry = "${pkgs.writeShellScript "deploy-spontaneity-hook" '' +exec < /dev/tty BRANCH=$(git branch --show-current) if [ "$BRANCH" != "main" ]; then exit 0 fi echo "Pushing to main detected. Deploying to ${spontaneityHost}..." +export NIX_SSHOPTS="-t" +nixos-rebuild switch --flake .#spontaneity \ + --target-host ${spontaneityUser}@${spontaneityHost} + --ask-sudo-password --sudo + if [ $? -eq 0 ]; then echo "Deployment successful!" else |
