1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 11:37:44 +00:00

Remove flake.nix right after nix reads it

This commit is contained in:
RGBCube 2023-05-11 22:24:01 +03:00
parent fa2d7460d6
commit abe975f870

View file

@ -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