14 lines
365 B
Nix
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
|
|
'';
|
|
}
|