From 6eb15730d330e22cace1ec8072f3e16fda15c82f Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 25 Nov 2024 15:42:55 +0100 Subject: [PATCH] Add nix-homebrew configuration to flake.nix Introduce nix-homebrew plus homebrew-core, homebrew-cask, and homebrew-bundle repositories. Also, enable nix-homebrew.darwinModules.nix-homebrew for the NixOS system configuration. --- flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/flake.nix b/flake.nix index 39a7f1c..7553e3b 100644 --- a/flake.nix +++ b/flake.nix @@ -21,6 +21,20 @@ darwin.url = "github:lnl7/nix-darwin"; darwin.inputs.nixpkgs.follows = "nixpkgs"; + nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew"; + homebrew-core = { + url = "github:homebrew/homebrew-core"; + flake = false; + }; + homebrew-cask = { + url = "github:homebrew/homebrew-cask"; + flake = false; + }; + homebrew-bundle = { + url = "github:homebrew/homebrew-bundle"; + flake = false; + }; + home-manager.url = "github:nix-community/home-manager/release-24.05"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; @@ -70,6 +84,7 @@ homes.modules = with inputs; [ neovim-flake.homeManagerModules.default ]; systems.modules.nixos = with inputs; [ + nix-homebrew.darwinModules.nix-homebrew lanzaboote.nixosModules.lanzaboote home-manager.nixosModules.home-manager sops-nix.nixosModules.sops