about summary refs log tree commit diff
path: root/machines/aszlig/kzerza.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/aszlig/kzerza.nix')
-rw-r--r--machines/aszlig/kzerza.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/machines/aszlig/kzerza.nix b/machines/aszlig/kzerza.nix
index 9ebb06b8..b1ec3633 100644
--- a/machines/aszlig/kzerza.nix
+++ b/machines/aszlig/kzerza.nix
@@ -54,12 +54,14 @@ in {
     serviceConfig = {
       Type = "idle";
       ExecStart = "${pkgs.vuizvui.grandpa}/bin/grandpa";
+      ExecStopPost = "${pkgs.systemd}/bin/systemctl poweroff";
       StandardInput = "tty";
       StandardOutput = "tty";
       TTYPath = "/dev/tty7";
       TTYVTDisallocate = true;
       User = "grandpa";
       Group = "grandpa";
+      PermissionsStartOnly = true;
       PrivateTmp = true;
       PrivateNetwork = true;
     };