From 0345c30b1b3c3b01ba5455a7fc6bee338c36052a Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 13 Jul 2015 17:36:31 +0200 Subject: 3 tv.*: use mkEnableOption --- 3modules/tv/urlwatch.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to '3modules/tv/urlwatch.nix') diff --git a/3modules/tv/urlwatch.nix b/3modules/tv/urlwatch.nix index d6e796ca7..aed247852 100644 --- a/3modules/tv/urlwatch.nix +++ b/3modules/tv/urlwatch.nix @@ -7,11 +7,12 @@ with builtins; with lib; - let cfg = config.tv.urlwatch; api = { + enable = mkEnableOption "tv.urlwatch"; + dataDir = mkOption { type = types.str; default = "/var/lib/urlwatch"; @@ -19,15 +20,6 @@ let Directory where the urlwatch service should store its state. ''; }; - enable = mkOption { - type = types.bool; - default = false; - description = '' - Whether to enable the urlwatch service. - If enabled, then create a timer that calls urlwatch and sends mails - whenever something has changed or an error occurs. - ''; - }; from = mkOption { type = types.str; default = "${cfg.user}@${config.networking.hostName}.retiolum"; -- cgit v1.2.3