From b7c08ac58426552e762a5700702f6006d9aaa82c Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Tue, 31 Dec 2024 05:10:36 -0500 Subject: [PATCH] 125 current 2024-12-31 05:00:59 25.05.20241217.d3c42f1 6.6.66 * --- home/scripts/nixos-rebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/scripts/nixos-rebuild.sh b/home/scripts/nixos-rebuild.sh index 20d35c4..b978417 100644 --- a/home/scripts/nixos-rebuild.sh +++ b/home/scripts/nixos-rebuild.sh @@ -27,7 +27,8 @@ git --git-dir /home/synchronous/nix-cfg/.git --no-pager diff -U0 echo "NixOS Rebuilding..." # Rebuild, output simplified errors, log trackebacks -sudo nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix &>nixos-switch.log || (cat nixos-switch.log | grep --color error && exit 1) +sudo nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix > /tmp/nixos-switch.log +cat /tmp/nixos-switch.log | grep --color error && exit 1 # Get current generation metadata current=$(nixos-rebuild list-generations | grep current)