summaryrefslogtreecommitdiff
path: root/hosts/atlas/cachix.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/atlas/cachix.nix')
-rw-r--r--hosts/atlas/cachix.nix18
1 files changed, 0 insertions, 18 deletions
diff --git a/hosts/atlas/cachix.nix b/hosts/atlas/cachix.nix
deleted file mode 100644
index 1dc1830..0000000
--- a/hosts/atlas/cachix.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{pkgs, ...}: let
- uploadToCachix = pkgs.writeScriptBin "upload-to-cachix" ''
- #!/bin/sh
- set -euf
-
- OUT_END=$(echo ''${OUT_PATHS: -10})
- if [ "$OUT_END" == "-spec.json" ]; then
- exit 0
- fi
-
- export HOME=/root
- exec ${pkgs.cachix}/bin/cachix -c /etc/cachix/cachix.dhall push getchoo $OUT_PATHS > /tmp/hydra_cachix 2>&1
- '';
-in {
- nix.extraOptions = ''
- post-build-hook = ${uploadToCachix}/bin/upload-to-cachix
- '';
-}