mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Remove flake.nix right after nix reads it
This commit is contained in:
parent
fa2d7460d6
commit
abe975f870
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue