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:
parent
b862fbce2b
commit
e6b7632401
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue