From 8c26682fc553444daa11d1000ad2fafa8247f08a Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 29 Sep 2024 18:51:21 +0200 Subject: t14: 26 current 2024-09-29 18:51:18 24.05.20240928.fbca5e7 6.6.52 * --- flake.nix | 2 +- rebuild.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4a22725..76a2c0d 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "Nixos config flake" + description = "Nixos config flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; diff --git a/rebuild.sh b/rebuild.sh index c38145e..2e2dfdd 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -36,6 +36,7 @@ echo "NixOS Rebuilding..." # Rebuild, output simplified errors, log trackebacks sudo nixos-rebuild switch --flake $DIR 2>&1 | tee nixos-switch.log +cat nixos-switch.log | grep --color error && exit 1 # Get current generation metadata current=$(nixos-rebuild list-generations | grep current) -- cgit 1.4.1