Skip to content

Commit 027d204

Browse files
committed
ci: try not to build the kernel over and over again
1 parent 353da03 commit 027d204

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
GC_DONT_GC: 1
4949
run: |
5050
for output in $(nix flake show --json | nix run nixpkgs#jq -- -r 'keys[]'); do
51-
nix build .#$output
51+
nix build .#$output --accept-flake-config
5252
if [ $(du -B1M result/iso/*.iso | cut -f1) -gt 2000 ]; then
5353
split -d result/iso/*.iso -b 2000M nixos-$output.iso.part-
5454
else

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
nixos-hardware.url = "github:NixOS/nixos-hardware";
77
};
88

9+
nixConfig = {
10+
extra-trusted-substituters = [ "https://cache.soopy.moe" ];
11+
extra-substituters = [ "https://cache.soopy.moe" ];
12+
extra-trusted-public-keys = [ "cache.soopy.moe-1:0RZVsQeR+GOh0VQI9rvnHz55nVXkFardDqfm4+afjPo=" ];
13+
};
14+
915
outputs = { self, nixpkgs, nixos-hardware }:
1016
let
1117
system = "x86_64-linux";

0 commit comments

Comments
 (0)