From 027d204c1f098a55c42c80534528faa294dd4adc Mon Sep 17 00:00:00 2001 From: Cassie Cheung Date: Mon, 9 Dec 2024 17:04:13 +0800 Subject: [PATCH] ci: try not to build the kernel over and over again --- .github/workflows/CI.yml | 2 +- flake.nix | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d415478..8185f32 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -48,7 +48,7 @@ jobs: GC_DONT_GC: 1 run: | for output in $(nix flake show --json | nix run nixpkgs#jq -- -r 'keys[]'); do - nix build .#$output + nix build .#$output --accept-flake-config if [ $(du -B1M result/iso/*.iso | cut -f1) -gt 2000 ]; then split -d result/iso/*.iso -b 2000M nixos-$output.iso.part- else diff --git a/flake.nix b/flake.nix index a38f8da..4861ca9 100644 --- a/flake.nix +++ b/flake.nix @@ -6,6 +6,12 @@ nixos-hardware.url = "github:NixOS/nixos-hardware"; }; + nixConfig = { + extra-trusted-substituters = [ "https://cache.soopy.moe" ]; + extra-substituters = [ "https://cache.soopy.moe" ]; + extra-trusted-public-keys = [ "cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo=" ]; + }; + outputs = { self, nixpkgs, nixos-hardware }: let system = "x86_64-linux";