From 36815b4852dc9fd5defb500377998c0b6ed3d836 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Mon, 9 Feb 2026 19:05:50 -0800 Subject: [PATCH] modules/homebrew: add restart_service "always" support Homebrew supports restart_service: :always which restarts the service on every brew bundle run, even if the formula wasn't changed. --- modules/homebrew.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/homebrew.nix b/modules/homebrew.nix index 0da306c..eba43c6 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -437,12 +437,13 @@ let ''; }; restart_service = mkOption { - type = with types; nullOr (either bool (enum [ "changed" ])); + type = with types; nullOr (either bool (enum [ "changed" "always" ])); default = null; description = '' Whether to run {command}`brew services restart` for the formula and register it to launch at login (or boot). If set to `"changed"`, the service will only - be restarted on version changes. + be restarted on version changes. If set to `"always"`, the service will + be restarted on every {command}`brew bundle` run, even if nothing changed. Homebrew's default is `false`. '';