Skip to content

Instantly share code, notes, and snippets.

@angerman
Created January 14, 2018 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angerman/fb1eb94a77b47a549163317663e0761d to your computer and use it in GitHub Desktop.
Save angerman/fb1eb94a77b47a549163317663e0761d to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
environment.systemPackages =
[ pkgs.nix-repl
];
# Create /etc/bashrc that loads the nix-darwin environment.
programs.bash.enable = true;
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 2;
# You should generally set this to the total number of logical cores in your system.
# $ sysctl -n hw.ncpu
nix.maxJobs = 1;
nix.buildCores = 1;
nix.distributedBuilds = true;
nix.buildMachines = [
{
hostName = "nix-docker";
sshUser = "root";
sshKey = "/etc/nix/docker_rsa";
systems = [ "x86_64-linux" ];
maxJobs = 8;
supportedFeatures = [ "big-parallel" ];
}
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment