removed default from nix and added an example instead

This commit is contained in:
Kristian Krsnik 2023-10-04 19:11:32 +02:00
parent 987cc3cc71
commit 0d6bf85519
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85
1 changed files with 10 additions and 5 deletions

View File

@ -23,11 +23,16 @@ in {
settings = mkOption {
type = with types; attrsOf (either str int);
default = {
logFile = throw "Please specify outage-detector.settings.";
host = "1.1.1.1";
timeout = 2;
};
description = lib.mdDoc ''
The settings for the outage-detector script.
Example:
{
logFile = /home/user/outage-detector.log;";
host = "1.1.1.1";
timeout = 2;
};
'';
};
};