comment out spctl allow apps from anywhere

doesn't work when using nh because it requires a UI escalation when
run via indirectly
This commit is contained in:
Noah Masur
2025-12-25 17:22:12 -07:00
parent a6915a6d2d
commit a978e67346

View File

@@ -96,14 +96,14 @@ in
}; };
}; };
# Settings that don't have an option in nix-darwin # # Settings that don't have an option in nix-darwin
activationScripts.postActivation.text = '' # activationScripts.postActivation.text = ''
echo "Allow apps from anywhere" # echo "Allow apps from anywhere"
SPCTL=$(spctl --status) # SPCTL=$(spctl --status)
if ! [ "$SPCTL" = "assessments disabled" ]; then # if ! [ "$SPCTL" = "assessments disabled" ]; then
sudo spctl --master-disable # spctl --master-disable
fi # fi
''; # '';
}; };