Turn off the machine once if install is successful
This commit is contained in:
parent
007c168081
commit
cd194f818d
|
@ -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
|
||||
|
|
Reference in a new issue