3: {tv -> krebs}.urlwatch

This commit is contained in:
tv 2015-07-24 11:55:16 +02:00
parent 5f63c4071c
commit b6987329fe
2 changed files with 5 additions and 5 deletions

View File

@ -156,8 +156,8 @@ in
};
}
{
imports = [ ../../3modules/tv/urlwatch.nix ];
tv.urlwatch = {
imports = [ ../../3modules/krebs/urlwatch.nix ];
krebs.urlwatch = {
enable = true;
mailto = "tv@wu.retiolum"; # TODO
onCalendar = "*-*-* 05:00:00";

View File

@ -8,16 +8,16 @@
with builtins;
with lib;
let
cfg = config.tv.urlwatch;
cfg = config.krebs.urlwatch;
# TODO assert sendmail's existence
out = {
options.tv.urlwatch = api;
options.krebs.urlwatch = api;
config = mkIf cfg.enable imp;
};
api = {
enable = mkEnableOption "tv.urlwatch";
enable = mkEnableOption "krebs.urlwatch";
dataDir = mkOption {
type = types.str;