From 8f7d6bacb647c6b02683edc9f9d647ea9b6c80fc Mon Sep 17 00:00:00 2001 From: Ivan Isakov <60196280+ivanisakov99@users.noreply.github.com> Date: Tue, 30 Dec 2025 12:22:48 -0500 Subject: [PATCH] launchd: Restore `errexit` after setting up `launchd` agents At the beginning of the setup script `errexit` is disabled, but never properly enabled again at the end. This causes potential issues/errors in activation scripts following `setupLaunchAgents` to go unnoticed, since the build doesn't actually fail. --- modules/launchd/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/launchd/default.nix b/modules/launchd/default.nix index baebdfdc..5943188e 100644 --- a/modules/launchd/default.nix +++ b/modules/launchd/default.nix @@ -270,9 +270,7 @@ in setupLaunchAgents # Restore errexit - if [[ -o errexit ]]; then - set -e - fi + set -e ''; }) ];