summaryrefslogtreecommitdiff
path: root/hci.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hci.nix')
-rw-r--r--hci.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/hci.nix b/hci.nix
new file mode 100644
index 0000000..51c72dd
--- /dev/null
+++ b/hci.nix
@@ -0,0 +1,35 @@
+{
+ inputs,
+ self,
+ ...
+}: {
+ imports = [
+ inputs.effects.flakeModule
+ ];
+
+ hercules-ci.flake-update = {
+ enable = true;
+ autoMergeMethod = "rebase";
+
+ flakes = {
+ ".".commitSummary = "flake: update inputs";
+ };
+
+ when = {
+ minute = 0;
+ hour = [0];
+ dayOfWeek = ["Sun"];
+ };
+ };
+
+ herculesCI = {lib, ...}: let
+ ciSystems = ["x86_64-linux" "aarch64-linux"];
+ findCompatible = lib.filterAttrs (s: _: builtins.elem s ciSystems);
+ in {
+ inherit ciSystems;
+
+ onPush.default.outputs = lib.mkForce {
+ packages = findCompatible self.packages;
+ };
+ };
+}