315 current 1970-01-01 01:00:00 23.11.20240514.9ddcaff 6.1.90 *

This commit is contained in:
Max Känner 2024-05-18 21:21:42 +02:00
parent 63563d6537
commit 1e0e83b934

View File

@ -21,7 +21,8 @@
# echo using sudo so we get feedback after unlocking # echo using sudo so we get feedback after unlocking
sudo echo "Beginning rebuild" sudo echo "Beginning rebuild"
# Rebuild, output simplified errors, log trackebacks # Rebuild, output simplified errors, log trackebacks
sudo nixos-rebuild switch &>nixos-switch.log || (${pkgs.coreutils}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false) # sudo nixos-rebuild switch &>nixos-switch.log || (${pkgs.coreutils}/bin/cat nixos-switch.log | ${pkgs.gnugrep}/bin/grep --color error && false)
sudo nixos-rebuild switch
# Get current generation metadata # Get current generation metadata
current=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current) current=$(nixos-rebuild list-generations | ${pkgs.gnugrep}/bin/grep current)