From 08baea2e2213a24a7e9315bf227a37e5508d1c68 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 12 Aug 2023 11:54:18 +0800 Subject: [PATCH] feat: disable remote building --- modules/nixos/remote-building.nix | 56 +++++++++++++++---------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/modules/nixos/remote-building.nix b/modules/nixos/remote-building.nix index 16e4b632..2d3cd3c9 100644 --- a/modules/nixos/remote-building.nix +++ b/modules/nixos/remote-building.nix @@ -36,34 +36,34 @@ in [ # 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. - { - # some of my remote builders are running NixOS - # and has the same sshUser, sshKey, systems, etc. - inherit sshUser sshKey systems supportedFeatures; - - # the hostName should be: - # 1. a hostname that can be resolved by DNS - # 2. the ip address of the remote builder - # 3. a host alias defined globally in /etc/ssh/ssh_config - hostName = "aquamarine"; - # remote builder's max-job - maxJobs = 3; - # speedFactor's a signed integer - # but it seems that it's not used by Nix, takes no effect - speedFactor = 1; - } - { - inherit sshUser sshKey systems supportedFeatures; - hostName = "ruby"; - maxJobs = 2; - speedFactor = 1; - } - { - inherit sshUser sshKey systems supportedFeatures; - hostName = "kana"; - maxJobs = 2; - speedFactor = 1; - } + # { + # # some of my remote builders are running NixOS + # # and has the same sshUser, sshKey, systems, etc. + # inherit sshUser sshKey systems supportedFeatures; + # + # # the hostName should be: + # # 1. a hostname that can be resolved by DNS + # # 2. the ip address of the remote builder + # # 3. a host alias defined globally in /etc/ssh/ssh_config + # hostName = "aquamarine"; + # # remote builder's max-job + # maxJobs = 3; + # # speedFactor's a signed integer + # # but it seems that it's not used by Nix, takes no effect + # speedFactor = 1; + # } + # { + # inherit sshUser sshKey systems supportedFeatures; + # hostName = "ruby"; + # maxJobs = 2; + # speedFactor = 1; + # } + # { + # inherit sshUser sshKey systems supportedFeatures; + # hostName = "kana"; + # maxJobs = 2; + # speedFactor = 1; + # } ]; # optional, useful when the builder has a faster internet connection than yours nix.extraOptions = ''