diff --git a/flake.nix b/flake.nix index e4dfa1a..551abfc 100644 --- a/flake.nix +++ b/flake.nix @@ -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 ]; }; diff --git a/nix-darwin/hercules.nix b/nix-darwin/hercules.nix new file mode 100644 index 0000000..d6d0d29 --- /dev/null +++ b/nix-darwin/hercules.nix @@ -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; + }; +} diff --git a/systems/darwin.nix b/systems/darwin.nix index a70474d..839c1fa 100644 --- a/systems/darwin.nix +++ b/systems/darwin.nix @@ -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;