Skip to content

Instantly share code, notes, and snippets.

@LnL7
Last active March 12, 2017 16:27
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 LnL7/5622fffcc8b9433bd78d691481ea7d80 to your computer and use it in GitHub Desktop.
Save LnL7/5622fffcc8b9433bd78d691481ea7d80 to your computer and use it in GitHub Desktop.
{ config, lib, pkgs, ... }:
with lib;
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
# Machine specific configuration (eg. networking.hostName = "foo");
<machine-config>
];
config = {
nix.distributedBuilds = true;
nix.buildMachines = mkIf (config.networking.hostName != "foo")
[ { hostName = "foo"; sshUser = "foo"; sshKey = "/var/run/keys/foo_rsa"; system = "x86_64-linux,i686-linux"; maxJobs = 8; }
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment