From f4a352aeaabe0aaae524240860c453b057ec129d Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 20 Oct 2026 12:10:05 +0400 Subject: [PATCH] shell: drop the nrs alias It ran git add -A, so a rebuild swept every unrelated change in /etc/nixos into one "Update: " commit and pushed it. Rebuild and commit separately instead. Assisted-by: Claude:opus-5-5 --- modules/shell.nix | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/shell.nix b/modules/shell.nix index c7cb482..81f1363 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -86,9 +86,4 @@ environment.shellInit = '' export GPG_TTY=$(tty) ''; - - # Shell aliases (available in all shells) - environment.shellAliases = { - nrs = ''export GPG_TTY=$(tty) && sudo nixos-rebuild switch --flake path:/etc/nixos && cd /etc/nixos && git add -A && git commit -S -m "Update: $(date +%Y-%m-%d_%H:%M)" || true && git push origin main''; - }; }