feat: disable remote building

This commit is contained in:
Ryan Yin
2023-08-12 11:54:18 +08:00
parent 356ed4bfdc
commit 08baea2e22

View File

@@ -36,34 +36,34 @@
in [ in [
# Nix seems always try to build on the machine remotely # Nix seems always try to build on the machine remotely
# to make use of the local machine's high-performance CPU, do not set remote builder's maxJobs too high. # to make use of the local machine's high-performance CPU, do not set remote builder's maxJobs too high.
{ # {
# some of my remote builders are running NixOS # # some of my remote builders are running NixOS
# and has the same sshUser, sshKey, systems, etc. # # and has the same sshUser, sshKey, systems, etc.
inherit sshUser sshKey systems supportedFeatures; # inherit sshUser sshKey systems supportedFeatures;
#
# the hostName should be: # # the hostName should be:
# 1. a hostname that can be resolved by DNS # # 1. a hostname that can be resolved by DNS
# 2. the ip address of the remote builder # # 2. the ip address of the remote builder
# 3. a host alias defined globally in /etc/ssh/ssh_config # # 3. a host alias defined globally in /etc/ssh/ssh_config
hostName = "aquamarine"; # hostName = "aquamarine";
# remote builder's max-job # # remote builder's max-job
maxJobs = 3; # maxJobs = 3;
# speedFactor's a signed integer # # speedFactor's a signed integer
# but it seems that it's not used by Nix, takes no effect # # but it seems that it's not used by Nix, takes no effect
speedFactor = 1; # speedFactor = 1;
} # }
{ # {
inherit sshUser sshKey systems supportedFeatures; # inherit sshUser sshKey systems supportedFeatures;
hostName = "ruby"; # hostName = "ruby";
maxJobs = 2; # maxJobs = 2;
speedFactor = 1; # speedFactor = 1;
} # }
{ # {
inherit sshUser sshKey systems supportedFeatures; # inherit sshUser sshKey systems supportedFeatures;
hostName = "kana"; # hostName = "kana";
maxJobs = 2; # maxJobs = 2;
speedFactor = 1; # speedFactor = 1;
} # }
]; ];
# optional, useful when the builder has a faster internet connection than yours # optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = '' nix.extraOptions = ''