From b5b48d56b3d0428d6a587654067f04febad54d82 Mon Sep 17 00:00:00 2001 From: Maciej Grela Date: Sat, 26 Oct 2024 18:37:30 +0200 Subject: [PATCH] Add extra debugging features: - ability to set a root password by specifying the 'root_password_hash' environment variable - ability to skip actual injection step by specifying the 'NO_INJECT' environment variable Signed-off-by: Maciej Grela --- nixos-infect | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 06f0171..31c0ad6 100644 --- a/nixos-infect +++ b/nixos-infect @@ -399,7 +399,9 @@ if [[ -z "$NO_SWAP" ]]; then makeSwap # smallest (512MB) droplet needs extra memory! fi makeConf -infect +if [[ -z "$NO_INFECT" ]]; then + infect +fi if [[ -z "$NO_SWAP" ]]; then removeSwap fi