Turn off the machine once if install is successful

This commit is contained in:
Nicolas Jeannerod 2024-11-07 12:01:43 +01:00 committed by Valentin Gagarin
parent adbd9d8d1e
commit 271315747b

View file

@ -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