diff --git a/nixos-infect b/nixos-infect index c2d0a91..273f77e 100755 --- a/nixos-infect +++ b/nixos-infect @@ -337,7 +337,7 @@ infect() { fi echo "make configuration boot by default..." - if /nix/var/nix/profiles/system/bin/switch-to-configuration boot; then + if ! /nix/var/nix/profiles/system/bin/switch-to-configuration boot; then echo "Failed!"; exit 1 fi }