make vm terminate after boot

This commit is contained in:
Jörg Thalheim 2023-09-27 11:14:44 +02:00 committed by Mic92
parent dea49073cb
commit b343650771

View File

@ -17,6 +17,16 @@
system.stateVersion = lib.version;
clan.networking.zerotier.controller.enable = true;
systemd.services.shutdown-after-boot = {
enable = true;
wantedBy = [ "multi-user.target" ];
after = [ "multi-user.target" ];
script = ''
#!/usr/bin/env bash
shutdown -h now
'';
};
};
};
};