Skip to content

Commit

Permalink
fix: using this lead to hm failing to switch silently
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 17, 2024
1 parent 8279805 commit a7efc28
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions modules/darwin/activation.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
system.activationScripts = {
# Settings that don't have an option in nix-darwin
postActivation.text = ''
echo "Allow apps from anywhere"
SPCTL=$(spctl --status)
if ! [ "$SPCTL" = "assessments disabled" ]; then
sudo spctl --master-disable
fi
'';

# activateSettings -u will reload the settings from the database and apply them to the current session,
# so we do not need to logout and login again to make the changes take effect.
#
Expand Down

0 comments on commit a7efc28

Please sign in to comment.