Factor out macos HCI

This commit is contained in:
Sridhar Ratnakumar 2023-01-05 10:28:14 +05:30
parent 2ff4d6ef8c
commit cd5b25f691
3 changed files with 12 additions and 9 deletions

View file

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

11
nix-darwin/hercules.nix Normal file
View file

@ -0,0 +1,11 @@
{ 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

@ -93,15 +93,6 @@
services.nix-daemon.enable = true;
# nix.package = pkgs.nix;
# TODO: use agenix to manage
# - secrets
# - ssh keys
# TODO: consolidate with nixos/hercules.nix
services.hercules-ci-agent = {
enable = true;
package = inputs.hci.packages.${system}.hercules-ci-agent;
};
# Create /etc/bashrc that loads the nix-darwin environment.
# programs.zsh.enable = true; # default shell on catalina
# programs.fish.enable = true;