about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-29 18:51:21 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2024-09-29 18:51:21 +0200
commit8c26682fc553444daa11d1000ad2fafa8247f08a (patch)
treed7c88236be14115fe7e03179066b91e8a5d6d0fe
parent82cb958a2bc0ce651332154d3a1567500bede1d9 (diff)
downloaddots-8c26682fc553444daa11d1000ad2fafa8247f08a.tar.gz
dots-8c26682fc553444daa11d1000ad2fafa8247f08a.zip
t14: 26 current 2024-09-29 18:51:18 24.05.20240928.fbca5e7 6.6.52 *
-rw-r--r--flake.nix2
-rwxr-xr-xrebuild.sh1
2 files changed, 2 insertions, 1 deletions
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)