1 { config, lib, pkgs, ... }:
6 cfg = config.services.do-agent;
10 options.services.do-agent = {
11 enable = mkEnableOption "do-agent, the DigitalOcean droplet metrics agent";
14 config = mkIf cfg.enable {
15 systemd.packages = [ pkgs.do-agent ];
17 systemd.services.do-agent = {
18 wantedBy = [ "multi-user.target" ];
20 ExecStart = [ "" "${pkgs.do-agent}/bin/do-agent --syslog" ];