diff --git a/nix/module.nix b/nix/module.nix index 9842678..b48ec67 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -35,7 +35,7 @@ in { in valueType; default = { - filename = throw "Please specify outage-detector.settings."; + logFile = throw "Please specify outage-detector.settings."; host = "1.1.1.1"; timeout = 2; }; @@ -47,7 +47,7 @@ in { systemd.services.outage-detector = mkIf (cfg.timer != null) { - script = "${package}/bin/outage_detector log ${cfg.settings.filename} --host ${cfg.settings.host} --timeout ${cfg.settings.timeout}"; + script = "${package}/bin/outage_detector log ${cfg.settings.logFile} --host ${cfg.settings.host} --timeout ${cfg.settings.timeout}"; serviceConfig = { Type = "oneshot";