diff --git a/nixos-infect b/nixos-infect index 21a2d06..d08ddb5 100644 --- a/nixos-infect +++ b/nixos-infect @@ -1,6 +1,6 @@ #! /usr/bin/env bash -set -e -o pipefail +set -ex -o pipefail makeConf() { [[ -e /etc/nixos/configuration.nix ]] && return 0 @@ -375,6 +375,8 @@ infect() { curl -L https://nixos.org/nix/install | sh -s -- --no-channel-add + bootctl install --graceful # Add necessary boot files. + # shellcheck disable=SC1090 source ~/.nix-profile/etc/profile.d/nix.sh @@ -446,8 +448,6 @@ fi makeConf infect -bootctl install --graceful # Add necessary boot files. - if [[ -z "$NO_SWAP" ]]; then removeSwap fi