Giter VIP home page Giter VIP logo

Comments (4)

bart-sofomo avatar bart-sofomo commented on May 2, 2024 1

@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"
    ];

from nixos-config.

bart-sofomo avatar bart-sofomo commented on May 2, 2024

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!

from nixos-config.

bart-sofomo avatar bart-sofomo commented on May 2, 2024

Next steps I've done

  1. Added input:
koekeishiya-formulae = {
  url = "github:koekeishiya/homebrew-formulae";
  flake = false;
};
  1. Added in outputs:
    koekeishiya-formulae

  2. Added to taps:

"koekeishiya/homebrew-formulae" = koekeishiya-formulae;
  1. 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?

from nixos-config.

dustinlyons avatar dustinlyons commented on May 2, 2024

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://github.com/LnL7/nix-darwin/blob/36524adc31566655f2f4d55ad6b875fb5c1a4083/modules/homebrew.nix#L597

https://daiderd.com/nix-darwin/manual/index.html#opt-homebrew.enable

from nixos-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.