From a0098277124531a81d5baa749c334bb15f155cff Mon Sep 17 00:00:00 2001 From: Lorenzo Manacorda Date: Sat, 20 Apr 2019 16:47:58 +0200 Subject: [PATCH] add NO_REBOOT variable Useful when nixos-infect is used within programs that manage the machine's state, like nixops. --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 88e8305..08b085c 100755 --- a/nixos-infect +++ b/nixos-infect @@ -258,4 +258,4 @@ makeConf makeSwap # smallest (512MB) droplet needs extra memory! infect removeSwap -reboot +[[ -z "$NO_REBOOT" ]] && reboot