Guest User

Untitled

a guest
Aug 6th, 2020
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. EXAMPLE : https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/monitoring/zabbix-agent.nix#L45
  2. -------
  3. zabbix-agent.nix
  4. --
  5. { config, pkgs, ... }:
  6.  
  7. { services.zabbixAgent = {
  8. enable = true;
  9. extraPackages = "[ nettools zfs-user ]";
  10. server = "192.168.5.10";
  11. extraConfig = ''
  12. Hostname = ${config.networking.hostName}
  13. ServerActive = 192.168.5.10
  14. ''; };
  15. }
  16. --
  17. OUTPUT : error: The option value `services.zabbixAgent.extraPackages' in `/etc/nixos/modules/zabbix-agent.nix' is not of type `list of packages'.
Add Comment
Please, Sign In to add comment