1
0
Fork 0
dotfiles/system/darwin/fake-homebrew.nix

15 lines
367 B
Nix
Raw Normal View History

2024-07-30 22:51:24 +00:00
{ pkgs, lib, ... }:
{
system.activationScripts.postUserActivation.text =
''
echo "setting up fake Homebrew binaries..."
current_user="$USER"
sudo -H mkdir -p /opt/homebrew/bin
2024-11-08 22:01:20 +00:00
sudo -H chown "$current_user:staff" /opt/homebrew/bin
2024-07-30 22:51:24 +00:00
sudo -H -u "$current_user" ln -sfn ${lib.getExe pkgs.python3} /opt/homebrew/bin/python3
'';
}