summaryrefslogtreecommitdiffstats
path: root/mail-server/clamav.nix
diff options
context:
space:
mode:
authorRobin Raymond <robin@robinraymond.de>2017-08-13 21:51:07 +0200
committerRobin Raymond <robin@robinraymond.de>2017-08-13 21:51:07 +0200
commit7d4809038fdb5abd83e551e267f7382a88c9e7d2 (patch)
tree3b576fd0c3cf51f6f06f528bbaf353006b4d83e0 /mail-server/clamav.nix
parentf51811b2368c9e908f762add1f295ed5214fe5ba (diff)
add virus scanning
Diffstat (limited to 'mail-server/clamav.nix')
-rw-r--r--mail-server/clamav.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/mail-server/clamav.nix b/mail-server/clamav.nix
new file mode 100644
index 0000000..acea48f
--- /dev/null
+++ b/mail-server/clamav.nix
@@ -0,0 +1,23 @@
+# nixos-mailserver: a simple mail server
+# Copyright (C) 2016-2017 Robin Raymond
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>
+
+{ virus_scanning }:
+
+{
+ daemon.enable = virus_scanning;
+ updater.enable = virus_scanning;
+}
+