dotfiles/system/darwin/fake-homebrew.nix
Daniel Kempkens 6c7c3fff67
All checks were successful
Build / build-amd64-linux (push) Successful in 6m11s
Build / build-arm64-linux (push) Successful in 27m43s
various: updates
2024-07-31 00:51:34 +02:00

14 lines
365 B
Nix

{ 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
'';
}