nixos/incus: shutdown instances on service stop

This commit is contained in:
Adam Stephens 2023-10-31 08:34:57 -04:00
parent 3087595a6b
commit 3132ba6cda
No known key found for this signature in database

View File

@ -166,6 +166,7 @@ in
serviceConfig = {
ExecStart = "${cfg.package}/bin/incusd --group incus-admin";
ExecStartPost = "${cfg.package}/bin/incusd waitready --timeout=${cfg.startTimeout}";
ExecStop = "${cfg.package}/bin/incus admin shutdown";
KillMode = "process"; # when stopping, leave the containers alone
Delegate = "yes";