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
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
# '';
};