Clamav

From NixOS Wiki

Clamav is an antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats.

In order to install it:

environment.systemPackages = [
  pkgs.clamav
];
services.clamav.daemon.enable = true;

services.clamav.updater.enable = true;