From 4f6e76e4be65dcc09f13054afb49bc877099802c Mon Sep 17 00:00:00 2001
From: zimbatm <zimbatm@zimbatm.com>
Date: Fri, 17 Apr 2020 23:50:18 +0200
Subject: [PATCH] cachix: use the fancyful branch

Use the post-build hooks to upload to the cache at the end
---
 .github/workflows/nix.yml |  4 +---
 default.nix               | 14 --------------
 2 files changed, 1 insertion(+), 17 deletions(-)
 delete mode 100644 default.nix

diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index e1db2fb..84b2c4f 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -7,10 +7,8 @@ jobs:
     steps:
     - uses: actions/checkout@v2
     - uses: cachix/install-nix-action@v8
-    - uses: cachix/cachix-action@v5
+    - uses: numtide/cachix-action@only-cache
       with:
         name: nix-community
         signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
-        # Only needed for private caches
-        authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
     - run: ./deploy --build-only
diff --git a/default.nix b/default.nix
deleted file mode 100644
index e45e82f..0000000
--- a/default.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-# Add derivations to be built from the cache to this file
-{ system ? builtins.currentSystem }:
-let
-  pkgs = import ./nix { inherit system; };
-
-  importNixOS = configuration: system:
-    (import "${toString pkgs.path}/nixos") {
-      inherit configuration system;
-    };
-in
-  pkgs.nix-community-infra // rec {
-    build01 = importNixOS ./build01/configuration.nix "x86_64-linux";
-    build01-system = build01.system;
-  }