From 280d82da33d17f4284d8f72b632195c9a0be6287 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Mon, 31 Jul 2023 08:55:16 +1000
Subject: [PATCH] Revert "build01: cachix deploy"

This reverts commit 3216d4fadd6a535f2bdb30d90c43e9d1800c855c.
---
 dev/effect.nix                  | 8 +-------
 hosts/build01/configuration.nix | 1 -
 2 files changed, 1 insertion(+), 8 deletions(-)

diff --git a/dev/effect.nix b/dev/effect.nix
index e362787..0efcf90 100644
--- a/dev/effect.nix
+++ b/dev/effect.nix
@@ -4,17 +4,11 @@
     withSystem "x86_64-linux" ({ hci-effects, pkgs, self', ... }:
       let
         inherit (config.repo) ref;
-        inherit (hci-effects) mkEffect runCachixDeploy runIf;
+        inherit (hci-effects) mkEffect runIf;
         inherit (pkgs.lib) hasPrefix;
       in
       {
         onPush.default.outputs.effects = {
-          cachix-deploy = runIf (hasPrefix "refs/heads/gh-readonly-queue/master/" ref)
-            (runCachixDeploy {
-              deploy.agents = {
-                build01 = builtins.unsafeDiscardStringContext self.nixosConfigurations.build01.config.system.build.toplevel;
-              };
-            });
           terraform-deploy = runIf (hasPrefix "refs/heads/gh-readonly-queue/master/" ref)
             (mkEffect {
               name = "terraform-deploy";
diff --git a/hosts/build01/configuration.nix b/hosts/build01/configuration.nix
index e2f5f85..9a8cc56 100644
--- a/hosts/build01/configuration.nix
+++ b/hosts/build01/configuration.nix
@@ -16,7 +16,6 @@
     inputs.self.nixosModules.raid
     inputs.self.nixosModules.zfs
     inputs.self.nixosModules.community-builder
-    inputs.self.nixosModules.cachix-deploy
   ];
 
   # Emulate riscv64 until we have proper builders