From a978e67346a13e22a50fddfeb7351f0c98212c3e Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 25 Dec 2025 17:22:12 -0700 Subject: [PATCH] comment out spctl allow apps from anywhere doesn't work when using nh because it requires a UI escalation when run via indirectly --- .../modules/nmasur/presets/services/settings.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platforms/nix-darwin/modules/nmasur/presets/services/settings.nix b/platforms/nix-darwin/modules/nmasur/presets/services/settings.nix index 715cbe7..56d00ad 100644 --- a/platforms/nix-darwin/modules/nmasur/presets/services/settings.nix +++ b/platforms/nix-darwin/modules/nmasur/presets/services/settings.nix @@ -96,14 +96,14 @@ in }; }; - # Settings that don't have an option in nix-darwin - activationScripts.postActivation.text = '' - echo "Allow apps from anywhere" - SPCTL=$(spctl --status) - if ! [ "$SPCTL" = "assessments disabled" ]; then - sudo spctl --master-disable - fi - ''; + # # Settings that don't have an option in nix-darwin + # activationScripts.postActivation.text = '' + # echo "Allow apps from anywhere" + # SPCTL=$(spctl --status) + # if ! [ "$SPCTL" = "assessments disabled" ]; then + # spctl --master-disable + # fi + # ''; };