diff options
author | lassulus <lass@xerxes.r> | 2019-09-06 15:33:04 +0200 |
---|---|---|
committer | lassulus <lass@xerxes.r> | 2019-09-06 15:33:04 +0200 |
commit | c2773285ebf8165fd725065047df7a58da01fb42 (patch) | |
tree | e1e067b768f334916d9d07b6cfa5c1a72b8067a4 /krebs/3modules/urlwatch.nix | |
parent | b06065549a31cf1713135e6547b04f69f351d7fb (diff) | |
parent | e388d02623b98bad5db52b29ea1ef1f494fddae8 (diff) |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/3modules/urlwatch.nix')
-rw-r--r-- | krebs/3modules/urlwatch.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/krebs/3modules/urlwatch.nix b/krebs/3modules/urlwatch.nix index 61ee72e74..43535b08f 100644 --- a/krebs/3modules/urlwatch.nix +++ b/krebs/3modules/urlwatch.nix @@ -75,10 +75,7 @@ let ]; apply = map (x: getAttr (typeOf x) { set = x; - string = { - url = x; - filter = null; - }; + string.url = x; }); }; verbose = mkOption { @@ -96,7 +93,7 @@ let hooksFile = cfg.hooksFile; - configFile = pkgs.writeText "urlwatch.yaml" (toJSON { + configFile = pkgs.writeJSON "urlwatch.yaml" { display = { error = true; new = true; @@ -132,7 +129,7 @@ let line_length = 75; }; }; - }); + }; imp = { systemd.timers.urlwatch = { @@ -210,8 +207,13 @@ let type = types.str; }; filter = mkOption { + default = null; type = with types; nullOr str; # TODO nullOr subtypes.filter }; + ignore_cached = mkOption { + default = null; + type = with types; nullOr bool; + }; }; }; in out |