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
|
#! /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
|
||||||
|
|
Loading…
Reference in a new issue