From da2ccab43fd675e6792f0bc1cfe2115286302aa5 Mon Sep 17 00:00:00 2001 From: samoht9277 Date: Wed, 7 Feb 2024 12:13:51 -0300 Subject: [PATCH] Added verbose logging. --- nixos-infect | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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