summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@nullring.xyz>2026-03-06 02:05:34 -0800
committerPreston Pan <ret2pop@nullring.xyz>2026-03-06 02:05:34 -0800
commitbb8a3f99278f20a0ba3c9652c8b3f3bad0283878 (patch)
tree88757e19fab9ebdc7633387d435f78c0588f7619
parent27eadc876be3b877591748c67cd98b20bee4022b (diff)
merge
l---------.pre-commit-config.yaml2
-rw-r--r--flake.nix4
2 files changed, 1 insertions, 5 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 232e855..ced6b79 120000
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1 +1 @@
-/nix/store/jk66aml77b18ycqghmbhgsl68n3dsry8-pre-commit-config.json \ No newline at end of file
+/nix/store/0c2jj36d8x29xq9010x4j4qyl6bx4m7c-pre-commit-config.json \ No newline at end of file
diff --git a/flake.nix b/flake.nix
index f97c2f7..e9b26af 100644
--- a/flake.nix
+++ b/flake.nix
@@ -92,7 +92,6 @@ 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
@@ -100,9 +99,6 @@ if [ "$BRANCH" != "main" ]; then
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!"