-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add taps : Permission denied / exited with 128 #125
Comments
Can you run
Is this owner by your user? Here is the dependency we use, nix-homebrew, I know they "migrate" existing configurations but maybe something went wrong. You could also try to set this option to
Otherwise I'm not exactly sure as I personally don't use taps. You can also just keep homebrew out of the configuration entirely, and have a traditional |
Hi @HugoHeneault , you can try the following method. Because we're using
{
# define the taps from leofarias
inputs = {
...
leoafarias-taps = {
url = "github:leoafarias/homebrew-fvm";
flake = false;
};
...
}
};
outputs = {
leoafarias-taps
} @inputs:
{
darwinConfigurations = nixpkgs.lib.genAttrs darwinSystems (system: let
user = "xxx";
in
darwin.lib.darwinSystem {
inherit system;
specialArgs = inputs;
modules = [
({ config, ...}: {
homebrew.taps = builtins.attrNames config.nix-homebrew.taps;
})
home-manager.darwinModules.home-manager
nix-homebrew.darwinModules.nix-homebrew
{
nix-homebrew = {
inherit user;
enable = true;
enableRosetta = true;
taps = {
# Define the tap here as well
"leoafarias/homebrew-fvm" = leoafarias-taps;
};
mutableTaps = false;
autoMigrate = true;
};
}
];
}
);
} Then in your homebrew = {
# This is a module from nix-darwin
# Homebrew is *installed* via the flake input nix-homebrew
enable = true;
onActivation = {
autoUpdate = false;
upgrade = false;
cleanup = "zap";
};
casks = pkgs.callPackage ./casks.nix {};
brews = [
"fvm"
];
}; Save the updated configuration, and run |
Hi there,
First thanks for that great repo which was a nice introduction to nix to me.
I'm trying to add taps to my setup.
I read #66, and I already did as stated as a solution:
But when
nix run .#build-switch
It returns
Running
brew tap leoafarias/fvm
returns the same error message :I can't figure out what's wrong with my setup. Thank you for your help 🙏
The text was updated successfully, but these errors were encountered: