Added verbose logging.

This commit is contained in:
samoht9277 2024-02-07 12:13:51 -03:00
parent b4c22faeee
commit da2ccab43f
No known key found for this signature in database
GPG key ID: 612AC42768391756

View file

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