anchor.diff:  let
   
     cfg = config.services.zabbixAgent;
  +
  +  zabbix = cfg.package;
   
     stateDir = "/var/run/zabbix";
   
  
positive.code:         description = ''
            Whether to run the Zabbix monitoring agent on this machine.
            It will send monitoring data to a Zabbix server.
          '';
        };
  
  
negative.code:             chown zabbix ${stateDir} ${logDir}
            '';
  
          serviceConfig.ExecStart = "@${zabbix.agent}/sbin/zabbix_agentd zabbix_agentd --config ${configFile}";
          serviceConfig.Type = "forking";
          serviceConfig.RemainAfterExit = true;
          serviceConfig.Restart = "always";
          serviceConfig.RestartSec = 2;
        };
  
      environment.systemPackages = [ zabbix.agent ];
  
    };
  
  