From 271315747ba299bebda1cadf769bf1c6b2bb385e 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 --- services/installer.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/installer.nix b/services/installer.nix index ba59526..6859cdb 100644 --- a/services/installer.nix +++ b/services/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