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 ];
|
runtimeInputs = with pkgs; [ nixos-install-tools ];
|
||||||
text = ''
|
text = ''
|
||||||
${machine.config.system.build.diskoScript}
|
${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
|
in
|
||||||
|
|
Loading…
Reference in a new issue