125 current 2024-12-31 05:00:59 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user