consolidate hci modules

This commit is contained in:
Sridhar Ratnakumar 2023-01-05 10:36:37 +05:30
parent cd5b25f691
commit fa4d5d06ab
3 changed files with 5 additions and 17 deletions

View file

@ -77,7 +77,7 @@
default = self.lib.mkMacosSystem {
imports = [
self.darwinModules.default # Defined in nix-darwin/default.nix
./nix-darwin/hercules.nix
./nixos/hercules.nix
./systems/darwin.nix
];
};

View file

@ -1,11 +0,0 @@
{ config, lib, pkgs, inputs, system, ... }:
{
# TODO: use agenix to manage
# - secrets
# - ssh keys
services.hercules-ci-agent = {
enable = true;
package = inputs.hci.packages.${system}.hercules-ci-agent;
};
}

View file

@ -1,6 +1,9 @@
{ pkgs, lib, inputs, system, ... }:
{
# TODO: use agenix to manage
# - secrets
# - ssh keys
services.hercules-ci-agent = {
enable = true;
# nixpkgs may not always have the latest HCI.
@ -10,11 +13,7 @@
# Regularly optimize nix store if using CI, because CI use can produce *lots*
# of derivations.
nix.gc = {
automatic = true;
dates = "weekly";
# NOTE: If the repos that use cache are updated as often as once a week (eg:
# flake.lock update action?), its cache should not be invalidated over time
# of idle periods.
automatic = ! pkgs.stdenv.isDarwin; # Enable only on Linux
options = "--delete-older-than 90d";
};
}