Skip to content

Commit 8bd6a0c

Browse files
authored
chore: set up daily flake update with Hercules CI (#643)
1 parent 7d2c301 commit 8bd6a0c

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

flake.lock

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
flake-utils.url = "github:numtide/flake-utils";
2828
flake-utils.inputs.systems.follows = "systems";
2929

30+
# ci
31+
hercules-ci-effects = {
32+
url = "github:hercules-ci/hercules-ci-effects";
33+
inputs.nixpkgs.follows = "nixpkgs";
34+
inputs.flake-parts.follows = "flake-parts";
35+
};
36+
3037
# utils
3138
systems.url = "github:nix-systems/default";
3239
devshell = {
@@ -55,11 +62,14 @@
5562
{
5663
imports = [
5764
inputs.devshell.flakeModule
65+
inputs.hercules-ci-effects.flakeModule
5866
inputs.treefmt-nix.flakeModule
5967
./mkdocs.nix
6068
./modules
6169
./pkgs
70+
./hercules-ci.nix
6271
];
72+
6373
systems = import systems;
6474
perSystem = {
6575
config,

hercules-ci.nix

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
inputs,
3+
lib,
4+
...
5+
}: {
6+
# configuration for the Hercules CI flake update effect
7+
# https://flake.parts/options/hercules-ci-effects.html#opt-hercules-ci.flake-update.enable
8+
hercules-ci.flake-update = {
9+
enable = true;
10+
# runs every day at midnight UTC
11+
when.hour = 0;
12+
};
13+
14+
# disable the default job since buildbot already builds everything
15+
herculesCI.onPush.default.outputs = lib.mkForce {
16+
# use hello as a dummy output to get the checkmark
17+
inherit (inputs.nixpkgs-unstable.legacyPackages.x86_64-linux) hello;
18+
};
19+
}

0 commit comments

Comments
 (0)