mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-11-01 00:29:57 +03:00
Added verbose logging.
This commit is contained in:
parent
b4c22faeee
commit
da2ccab43f
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue