From cd194f818df0f1752da4ef15c1e435586d28b596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Thu, 7 Nov 2024 12:01:43 +0100 Subject: [PATCH] Turn off the machine once if install is successful --- installer.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.nix b/installer.nix index ba59526..6859cdb 100644 --- a/installer.nix +++ b/installer.nix @@ -12,7 +12,8 @@ nixpkgs: machine: runtimeInputs = with pkgs; [ nixos-install-tools ]; text = '' ${machine.config.system.build.diskoScript} - nixos-install --no-root-password --no-channel-copy --system ${machine.config.system.build.toplevel} + nixos-install --no-root-password --no-channel-copy --system ${machine.config.system.build.toplevel} \ + && poweroff ''; }; in