Closed bart-sofomo closed 7 months ago
When I create manually these paths I'm getting then:
Installing yabai
Warning: Cask 'yabai' is unavailable: '/usr/local/Homebrew/Library/Taps/koekeishiya/homebrew-formulae/Casks/yabai.rb' does not exist.
Error: No casks found for yabai.
==> Searching for similarly named casks...
Installing yabai has failed!
Installing skhd
Warning: Cask 'skhd' is unavailable: '/usr/local/Homebrew/Library/Taps/koekeishiya/homebrew-formulae/Casks/skhd.rb' does not exist.
Error: No casks found for skhd.
==> Searching for similarly named casks...
Installing skhd has failed!
Next steps I've done
Added input:
koekeishiya-formulae = {
url = "github:koekeishiya/homebrew-formulae";
flake = false;
};
Added in outputs:
koekeishiya-formulae
Added to taps:
"koekeishiya/homebrew-formulae" = koekeishiya-formulae;
Then in casks:
"koekeishiya/homebrew-formulae/yabai"
"koekeishiya/homebrew-formulae/skhd"
The problem is that it tried to install:
Installing yabai
Warning: Cask 'yabai' is unavailable: '/usr/local/Homebrew/Library/Taps/koekeishiya/homebrew-formulae/Casks/yabai.rb' does not exist.
Error: No casks found for yabai.
==> Searching for similarly named casks...
Installing yabai has failed!
Installing skhd
Warning: Cask 'skhd' is unavailable: '/usr/local/Homebrew/Library/Taps/koekeishiya/homebrew-formulae/Casks/skhd.rb' does not exist.
Error: No casks found for skhd.
==> Searching for similarly named casks...
Installing skhd has failed!
while it should not have Casks
in the path - what am I missing?
This project uses the homebrew options in nix-darwin
. They are all here:
homebrew = {
enable = true;
casks = pkgs.callPackage ./casks.nix {};
# These app IDs are from using the mas CLI app
# mas = mac app store
# https://github.com/mas-cli/mas
#
# $ nix shell nixpkgs#mas
# $ mas search <app name>
#
masApps = {
"1password" = 1333542190;
"wireguard" = 1451685025;
};
};
And then as you found, we just import homebrew
using nix-homebrew. That's the extent of the homebrew configuration.
I think your underlying question is: "how do I add my own taps to this configuration?" I would dig around the nix-darwin
homebrew option docs for that. Here are some resources:
https://daiderd.com/nix-darwin/manual/index.html#opt-homebrew.enable
@dustinlyons thanks for pointing out the links. At the end it is like add inside hombrew config in home-manager:
taps = [
{
name = "koekeishiya/homebrew-formulae";
clone_target = "https://github.com/koekeishiya/homebrew-formulae.git";
force_auto_update = true;
}
];
brews = [
"koekeishiya/homebrew-formulae/yabai"
"koekeishiya/homebrew-formulae/skhd"
];
Hi, I've added two packages:
When running
nix run .#build-switch
I'm getting:Not sure why this is happening - any idea?