cachix: use the fancyful branch

Use the post-build hooks to upload to the cache at the end
This commit is contained in:
zimbatm 2020-04-17 23:50:18 +02:00
parent edf54f7fb2
commit 4f6e76e4be
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
2 changed files with 1 additions and 17 deletions
.github/workflows
default.nix

View file

@ -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

View file

@ -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;
}