From d596d005cae6ebd9db4d1c754b9eff58bec8b40f Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 20 Feb 2024 13:11:47 +0000 Subject: [PATCH] systemd: configure a 25s stop timeout for the user manager too (hopefully) --- hosts/common/systemd.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/common/systemd.nix b/hosts/common/systemd.nix index d4ce603f..35d661df 100644 --- a/hosts/common/systemd.nix +++ b/hosts/common/systemd.nix @@ -2,7 +2,11 @@ { systemd.extraConfig = '' # DefaultTimeoutStopSec defaults to 90s, and frequently blocks overall system shutdown. - # note that the values for the system manager and the user service manager must be set separately. + DefaultTimeoutStopSec=25 + ''; + + systemd.user.extraConfig = '' + # DefaultTimeoutStopSec defaults to 90s, and frequently blocks overall system shutdown. DefaultTimeoutStopSec=25 '';