mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-20 20:19:39 +03:00
Oops, placed mkIf in the wrong place. Fixing
svn path=/nixos/trunk/; revision=18402
This commit is contained in:
parent
a94da97354
commit
ddc5a7d7c5
@ -26,7 +26,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = mkIf config.services.monit.enable {
|
||||||
environment.etc = [
|
environment.etc = [
|
||||||
{
|
{
|
||||||
source = pkgs.writeTextFile {
|
source = pkgs.writeTextFile {
|
||||||
@ -37,7 +37,7 @@ in
|
|||||||
mode = "0400";
|
mode = "0400";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
jobs.monit = mkIf config.services.monit.enable {
|
jobs.monit = {
|
||||||
description = "Monit system watcher";
|
description = "Monit system watcher";
|
||||||
|
|
||||||
startOn = config.services.monit.startOn;
|
startOn = config.services.monit.startOn;
|
||||||
|
Loading…
Reference in New Issue
Block a user