summaryrefslogtreecommitdiff
path: root/modules/darwin/homebrew.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-07-09 14:22:15 +0300
committerAzat Bahawi <azat@bahawi.net>2023-07-09 14:22:15 +0300
commitab63f2eb09ed6633a7fad7a1a72b60bb14d5c85c (patch)
tree72f32b1f4e2f0e57b90722ebd5b0ec19e8f8f15b /modules/darwin/homebrew.nix
parenta08d9d966a3bc60ac917a5a94b766f8d2487d6db (diff)
2023-07-09
Diffstat (limited to 'modules/darwin/homebrew.nix')
-rw-r--r--modules/darwin/homebrew.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/darwin/homebrew.nix b/modules/darwin/homebrew.nix
index f0bec9b..2667828 100644
--- a/modules/darwin/homebrew.nix
+++ b/modules/darwin/homebrew.nix
@@ -9,13 +9,18 @@ in {
options.nixfiles.modules.homebrew.enable = mkEnableOption "Homebrew";
config = mkIf cfg.enable {
+ hm.programs.bash.initExtra = mkAfter ''
+ if [ -x "/opt/homebrew/bin/brew" ]; then
+ export PATH="$PATH:/opt/homebrew/bin"
+ fi
+ '';
+
# This option requires an installed Homebrew[1].
#
# [1]: https://daiderd.com/nix-darwin/manual/index.html#opt-homebrew.enable
# [1]: https://brew.sh
homebrew = {
enable = true;
- taps = [];
onActivation = {
autoUpdate = true;
cleanup = "zap";