1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-12-04 18:56:56 +01:00

darwin/homebrew: clean up dangling Taps symlink during activation

This commit is contained in:
TheGeneralist 2026-10-21 17:48:46 +02:00
parent b862fbce2b
commit e6b7632401
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -3,6 +3,7 @@
homebrew-cask,
steipete-tap,
config,
lib,
...
}:
{
@ -21,4 +22,13 @@
mutableTaps = true;
};
system.activationScripts.preActivation.text = lib.mkAfter ''
if [[ -L /opt/homebrew/Library/Taps ]]; then
rm -f /opt/homebrew/Library/Taps
fi
mkdir -p /opt/homebrew/Library/Taps
chown ${config.system.primaryUser}:admin /opt/homebrew/Library/Taps
chmod ug=rwx /opt/homebrew/Library/Taps
'';
}