30 current 2025-04-29 03:04:20 25.05.20250424.f771eb4 6.12.24 *
This commit is contained in:
@@ -34,8 +34,10 @@ git status --porcelain
|
|||||||
echo ""
|
echo ""
|
||||||
echo "NixOS Rebuilding..."
|
echo "NixOS Rebuilding..."
|
||||||
|
|
||||||
|
prev=$(basename $(readlink /run/current-system) | sed 's/.*nixos-system-\(.*\)-.*$/\1/')
|
||||||
|
|
||||||
# Rebuild, output simplified errors, log trackebacks
|
# Rebuild, output simplified errors, log trackebacks
|
||||||
sudo /run/current-system/sw/bin/nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix 2>&1 | tee /tmp/nixos-switch.log
|
sudo /run/current-system/sw/bin/nixos-rebuild switch --flake /home/synchronous/nix-cfg/flake.nix#"$prev" 2>&1 | tee /tmp/nixos-switch.log
|
||||||
|
|
||||||
# cat /tmp/nixos-switch.log | grep --color error && exit 1
|
# cat /tmp/nixos-switch.log | grep --color error && exit 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user