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.
This commit is contained in:
parent
7c952d9a52
commit
36815b4852
1 changed files with 3 additions and 2 deletions
|
|
@ -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`.
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue