feat: set DefaultTimeoutStopSec to 10s

This commit is contained in:
2026-05-26 21:12:31 +02:00
parent a9378ca8b5
commit ee0873c8bf

View File

@@ -98,6 +98,14 @@ nixpkgs.lib.nixosSystem {
]; ];
} }
# cap unit stop timeout so a single misbehaving app (electron, etc) can't
# block poweroff for the full 90s default. user-scope cap is required for
# session-N.scope to honor it. see discourse/49711
{
systemd.settings.Manager.DefaultTimeoutStopSec = "10s";
systemd.user.extraConfig = "DefaultTimeoutStopSec=10s";
}
featureEnableModule featureEnableModule
hostConfig hostConfig
] ]