LnL7 / nix-docker

Docker images for the Nix package manager
MIT License
288 stars 41 forks source link

nix-darwin + nix-docker + nixops = failed deployment #6

Closed yurrriq closed 7 years ago

yurrriq commented 7 years ago

When trying to deploy a simple web app from my macOS/nix-darwin machine using nix-docker, I get the following error:

error: all build users are currently in use; consider creating additional users and adding them to the ‘nixbld’ group on ‘nix-docker’

I've since changed maxJobs to 1 (from 4) as follows:

{
  nix.distributedBuilds = true;
  nix.buildMachines = [
    {
      hostName = "nix-docker";
      system = "x86_64-linux";
      maxJobs = 1;
      sshKey = "/Users/mohacker/.ssh/docker_rsa";
    }
  ];

Here's hoping that works, but if not, I may need further advice.

yurrriq commented 7 years ago

Don't mind this noise. Reducing maxJobs seemed to do the trick. Maybe this monologue will be useful to someone else in the future.