mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
consolidate hci modules
This commit is contained in:
parent
cd5b25f691
commit
fa4d5d06ab
3 changed files with 5 additions and 17 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue