diff --git a/services/hydra/default.nix b/services/hydra/default.nix index 11b6061..771e5d5 100644 --- a/services/hydra/default.nix +++ b/services/hydra/default.nix @@ -70,6 +70,14 @@ in { services.hydra = { enable = true; + # remote builders set in /etc/nix/machines + localhost + buildMachinesFiles = [ + "/etc/nix/machines" + + (pkgs.writeText "local" '' + localhost x86_64-linux,builtin - 8 1 nixos-test,big-parallel,kvm - - + '') + ]; hydraURL = "https://hydra.nix-community.org"; notificationSender = "hydra@hydra.nix-community.org"; port = hydraPort; @@ -81,18 +89,6 @@ in { ''; }; - nix = { - distributedBuilds = true; - buildMachines = [ - { - hostName = "localhost"; - systems = ["x86_64-linux" "builtin"]; - maxJobs = 8; - supportedFeatures = ["nixos-test" "big-parallel" "kvm"]; - } - ]; - }; - services.postgresql = { enable = true; ensureDatabases = ["hydra"]; diff --git a/tasks.py b/tasks.py index c71b980..840465e 100644 --- a/tasks.py +++ b/tasks.py @@ -23,8 +23,7 @@ def deploy_nixos(hosts: List[DeployHost]) -> None: f"rsync {' --exclude '.join([''] + RSYNC_EXCLUDES)} -vaF --delete -e ssh . {target}:/etc/nixos" ) - # FIXME: build03 has itself as a builder and deadlocks building packages. - h.run(f"nixos-rebuild switch --builders '' --option accept-flake-config true") + h.run(f"nixos-rebuild switch --option accept-flake-config true") g.run_function(deploy)