From 9b5133529e53eceaafeff675654f7a2a4265de73 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Sat, 18 Apr 2020 16:01:45 -0700 Subject: [PATCH] systemd: don't page failed user units Otherwise, the pager (typically `less`) pauses execution of `home-manager switch` until the pager is dismissed, if the content is larger than would fit on the screen. PR #1175 (cherry picked from commit 83696245129907f22df6926ba64beb58c7e3aa6a) --- modules/systemd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/systemd.nix b/modules/systemd.nix index 561640205..dcb1a2957 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -249,7 +249,7 @@ in if [[ $systemdStatus == 'running' || $systemdStatus == 'degraded' ]]; then if [[ $systemdStatus == 'degraded' ]]; then warnEcho "The user systemd session is degraded:" - ${systemctl} --user --state=failed + ${systemctl} --user --no-pager --state=failed warnEcho "Attempting to reload services anyway..." fi