Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homebrew.brews.*.{start,restart}_service crashes build #1212

Open
BastienM opened this issue Dec 4, 2024 · 1 comment
Open

homebrew.brews.*.{start,restart}_service crashes build #1212

BastienM opened this issue Dec 4, 2024 · 1 comment

Comments

@BastienM
Copy link

BastienM commented Dec 4, 2024

Hi,

I started using start_service and restart_service on some brews and whenever used, the build would fail during the homebrew phase and more specifically when listing brew services.

When manually running brew services list I do get a list with both services in it.

I will attach the full nix files later today, as I don't have access to the machine right now.

Console output

[...]
Error: Failure while executing; `brew services list` exited with 127. Here's the output:
# empty stack trace

Source

brews = [
	{
		name = "autoraise";
		args = ["with-dalternative_task_switcher"];
		restart_service = "changed";
		start_service = true;
	}
	{
		name = "sunshine-beta";
		restart_service = "changed";
		start_service = true;
	}
]
@yxtay
Copy link

yxtay commented Dec 9, 2024

I am facing the same issue. I have no problems running brew services list and brew services restart colima manually.

Trying with the following config for homebrew.

# homebrew.nix
{
  config,
  lib,
  ...
}: {
  homebrew = {
    enable = true;

    onActivation = {
      autoUpdate = true;
      upgrade = true;
      cleanup = "zap";
    };
    taps = [
      "homebrew/bundle"
      "homebrew/services"
    ];

    brews = [
      "docker"
      "docker-buildx"
      "docker-completion"
      "docker-compose"
      {
        name = "colima";
        restart_service = "changed";
      }
    ];
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants