From abe975f870a573d4cca8df629f4fc7e64a8faa3e Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 11 May 2023 22:24:01 +0300 Subject: [PATCH] Remove flake.nix right after nix reads it --- rebuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebuild.sh b/rebuild.sh index 4c5ae6a..ab41c5d 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -20,6 +20,7 @@ fi sudo true sed -ie "s|@pwd@|$PWD|g" flake.nix +(sleep 1; rm flake.nixe) & sudo nixos-rebuild switch --impure --flake .#$machine if [[ $? != 0 ]]; then @@ -27,7 +28,6 @@ if [[ $? != 0 ]]; then fi sed -ie "s|$PWD|@pwd@|g" flake.nix -# No clue how to prevent sed from outputting this. rm flake.nixe if [[ $1 != "-c" && $1 != "--clean-garbage" ]]; then