mirror of
https://github.com/nmasur/dotfiles
synced 2025-12-29 10:52:42 +00:00
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:
@@ -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
|
||||
# '';
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user