clamav: Fixed indentation.

This commit is contained in:
JC Brand 2015-12-12 12:06:14 +00:00
parent 09d9693089
commit 36e1e3a8a6

View File

@ -13,27 +13,27 @@ in
services.clamav = { services.clamav = {
updater = { updater = {
enable = mkOption { enable = mkOption {
default = false; default = false;
description = '' description = ''
Whether to enable automatic ClamAV virus definitions database updates. Whether to enable automatic ClamAV virus definitions database updates.
''; '';
}; };
frequency = mkOption { frequency = mkOption {
default = 12; default = 12;
description = '' description = ''
Number of database checks per day. Number of database checks per day.
''; '';
}; };
config = mkOption { config = mkOption {
default = ""; default = "";
description = '' description = ''
Extra configuration for freshclam. Contents will be added verbatim to the Extra configuration for freshclam. Contents will be added verbatim to the
configuration file. configuration file.
''; '';
}; };
}; };
}; };
}; };
@ -63,15 +63,15 @@ in
jobs = { jobs = {
clamav_updater = { clamav_updater = {
name = "clamav-updater"; name = "clamav-updater";
startOn = "started network-interfaces"; startOn = "started network-interfaces";
stopOn = "stopping network-interfaces"; stopOn = "stopping network-interfaces";
preStart = '' preStart = ''
mkdir -m 0755 -p ${stateDir} mkdir -m 0755 -p ${stateDir}
chown ${clamavUser}:${clamavGroup} ${stateDir} chown ${clamavUser}:${clamavGroup} ${stateDir}
''; '';
exec = "${pkgs.clamav}/bin/freshclam --daemon --config-file=${pkgs.writeText "freshclam.conf" cfg.updater.config}"; exec = "${pkgs.clamav}/bin/freshclam --daemon --config-file=${pkgs.writeText "freshclam.conf" cfg.updater.config}";
}; };
}; };