add hercules-ci-agent, but leave disabled due to bug

https://github.com/hercules-ci/hercules-ci-agent/issues/341
This commit is contained in:
Sridhar Ratnakumar 2021-12-05 12:49:22 -05:00
parent e0530694e6
commit 41eed8031d
4 changed files with 38 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, pkgs, lib, inputs, ... }:
# A separate container to run Hercules effects
# https://docs.hercules-ci.com/hercules-ci/effects/
@ -7,6 +7,20 @@
ephemeral = false;
autoStart = true;
config = { config, pkgs, ... }: {
imports = [
(inputs.hercules-ci-agent + "/module.nix")
/* (builtins.fetchTarball
{
url = "https://github.com/hercules-ci/hercules-ci-agent/archive/ecac058b7633f969350cbc22e8c8a7466bcbc13f.tar.gz";
sha256 = "sha256-I7Npzb0Zf58b68o1FDDphg2FsHp/V/Jhub3DzSXIBE4=";
}
+ "/module.nix"
) */
];
# Enabling this triggers https://github.com/hercules-ci/hercules-ci-agent/issues/341
#services.hercules-ci-agent.enable = true;
#services.hercules-ci-agent.concurrentTasks = 4;
networking.firewall.allowedTCPPorts = [ ];
};
};

18
flake.lock generated
View file

@ -366,6 +366,23 @@
"type": "github"
}
},
"hercules-ci-agent": {
"flake": false,
"locked": {
"lastModified": 1637162411,
"narHash": "sha256-cou5C/MeoFSaKnZp326ciMv/bjqzJw0m+JX1SQnrHzQ=",
"owner": "hercules-ci",
"repo": "hercules-ci-agent",
"rev": "d8a96f2367f1381a188dc498fa243747ce827b1c",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"ref": "master",
"repo": "hercules-ci-agent",
"type": "github"
}
},
"himalaya": {
"inputs": {
"crate2nix": "crate2nix",
@ -766,6 +783,7 @@
"inputs": {
"emacs-overlay": "emacs-overlay",
"emanote": "emanote",
"hercules-ci-agent": "hercules-ci-agent",
"himalaya": "himalaya",
"home-manager": "home-manager",
"neovim-nightly-overlay": "neovim-nightly-overlay",

View file

@ -19,6 +19,10 @@
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
nix-doom-emacs.url = "github:vlaci/nix-doom-emacs";
emanote.url = "github:srid/emanote";
hercules-ci-agent = {
url = "github:hercules-ci/hercules-ci-agent/master";
flake = true;
};
};
outputs = inputs@{ self, home-manager, nixpkgs, ... }:

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, modulesPath, ... }:
{ config, pkgs, lib, modulesPath, inputs, ... }:
{
imports =