Turn off the machine once if install is successful

This commit is contained in:
Nicolas Jeannerod 2024-11-07 12:01:43 +01:00
parent 007c168081
commit cd194f818d
Signed by: Niols
GPG key ID: 35DB9EC8886E1CB8

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