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

15 lines
365 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
sudo -H chown $current_user:staff /opt/homebrew/bin
sudo -H -u "$current_user" ln -sfn ${lib.getExe pkgs.python3} /opt/homebrew/bin/python3
'';
}