diff --git a/modules/nixos/rebuild.nix b/modules/nixos/rebuild.nix index 8f73fba..d16ac61 100644 --- a/modules/nixos/rebuild.nix +++ b/modules/nixos/rebuild.nix @@ -21,14 +21,13 @@ ${pkgs.alejandra}/bin/alejandra . #&>/dev/null # Shows your changes - ${pkgs.git}/bin/git diff -U0 *.nix + ${pkgs.git}/bin/git diff -U0 echo "NixOS Rebuilding..." # echo using sudo so we get feedback after unlocking sudo echo "Beginning rebuild" # 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 # Get current generation metadata