mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Factor out macos HCI
This commit is contained in:
parent
2ff4d6ef8c
commit
cd5b25f691
3 changed files with 12 additions and 9 deletions
|
|
@ -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
11
nix-darwin/hercules.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue