summaryrefslogtreecommitdiff
path: root/hosts/muhammed/remote-builders/default.nix
blob: 50bda9646b4c23164a8c749d79f20912d1c7960a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Manages remote Nix builders. These are useful for building faster and for
# other architectures.
{...}: {
  imports = [
    ./local-linux-builder.nix
    ./ahmed-builder.nix
  ];

  # Enable using remote builders.
  nix.distributedBuilds = true;

  # Optional, useful when the builder has a faster internet connection than
  # yours. This may be the case since this host is a laptop and one of the
  # remote builders isn't.
  nix.extraOptions = ''
    builders-use-substitutes = true
  '';
}