diff --git a/modules/programs/brew-bundle.nix b/modules/homebrew.nix
similarity index 94%
rename from modules/programs/brew-bundle.nix
rename to modules/homebrew.nix
index d5ba88e..2d142b0 100644
--- a/modules/programs/brew-bundle.nix
+++ b/modules/homebrew.nix
@@ -5,7 +5,7 @@
with lib;
let
- cfg = config.programs.brew-bundle;
+ cfg = config.homebrew;
brewfileSection = heading: type: entries:
if entries != [] then
@@ -37,7 +37,7 @@ let
in
{
- options.programs.brew-bundle = {
+ options.homebrew = {
enable = mkEnableOption ''
configuring your Brewfile, and installing/updating the formulas therein via
the brew bundle command, using nix-darwin.
@@ -141,12 +141,12 @@ in
Applications to install from Mac App Store using mas.
When this option is used, "mas" is automatically added to
- .
+ .
Note that you need to be signed into the Mac App Store for mas to
successfully install and upgrade applications, and that unfortunately apps removed from this
option will not be uninstalled automatically even if
- is set to "uninstall"
+ is set to "uninstall"
or "zap" (this is currently a limitation of Homebrew Bundle).
For more information on mas see: https://github.com/mas-cli/mas
@@ -161,7 +161,7 @@ in
Docker images to install using whalebrew.
When this option is used, "whalebrew" is automatically added to
- .
+ .
For more information on whalebrew see:
https://github.com/whalebrew/whalebrew
@@ -199,14 +199,14 @@ in
message = ''
Homebrew not installed.
- Please install Homebrew yourself before using the programs.brew-bundle module.
+ Please install Homebrew yourself before using the module.
See installation instructions at: https://brew.sh
'';
}
];
- programs.brew-bundle.brews =
+ homebrew.brews =
optional (cfg.masApps != {}) "mas" ++
optional (cfg.whalebrews != []) "whalebrew";
@@ -215,7 +215,7 @@ in
(if cfg.userConfig.noLock then { HOMEBREW_BUNDLE_NO_LOCK = "1"; } else {})
);
- system.activationScripts.brew-bundle.text = mkIf cfg.enable ''
+ system.activationScripts.homebrew.text = mkIf cfg.enable ''
# Homebrew Bundle
echo >&2 "Homebrew bundle..."
PATH=/usr/local/bin:$PATH ${brew-bundle-command}
diff --git a/modules/module-list.nix b/modules/module-list.nix
index bb7459e..447d075 100644
--- a/modules/module-list.nix
+++ b/modules/module-list.nix
@@ -59,7 +59,6 @@
./services/yabai
./services/nextdns
./programs/bash
- ./programs/brew-bundle.nix
./programs/fish.nix
./programs/gnupg.nix
./programs/man.nix
@@ -69,6 +68,7 @@
./programs/tmux.nix
./programs/vim.nix
./programs/zsh
+ ./homebrew.nix
./users
./users/nixbld
]
diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix
index a194bdf..346fb97 100644
--- a/modules/system/activation-scripts.nix
+++ b/modules/system/activation-scripts.nix
@@ -105,7 +105,7 @@ in
${cfg.activationScripts.extraUserActivation.text}
${cfg.activationScripts.userDefaults.text}
${cfg.activationScripts.userLaunchd.text}
- ${cfg.activationScripts.brew-bundle.text}
+ ${cfg.activationScripts.homebrew.text}
${cfg.activationScripts.postUserActivation.text}