cachix: use the fancyful branch
Use the post-build hooks to upload to the cache at the end
This commit is contained in:
parent
edf54f7fb2
commit
4f6e76e4be
2 changed files with 1 additions and 17 deletions
4
.github/workflows/nix.yml
vendored
4
.github/workflows/nix.yml
vendored
|
@ -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
|
||||
|
|
14
default.nix
14
default.nix
|
@ -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;
|
||||
}
|
Loading…
Add table
Reference in a new issue