aboutsummaryrefslogtreecommitdiff
path: root/modules/calendar.home/default.nix
blob: 06ea9825e8111e4e76a0dd25dc5a17caabbba938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ config, ... }:
let
  private = import ./private.nix;
in
{
  imports = [
    ./ical2org.module.nix
    ./orgmode-notifier.module.nix
  ];

  services.ical2org = {
    enable = true;
    icalLink = private.icalLink;
    outputPath = "${config.home.homeDirectory}/nixos/extras/notes/calendar-sync.autogen.org";
    syncFrequency = "*:0/10"; # Every 10 minutes
    settings = {
      filetags = "calendar";
      email = private.email;
      title = "calendar";
      category = "calendar";
      startup = "showeverything";
      past = 6; # days
      future = 30; # days
    };
  };

  services.orgmode-notifier = {
    enable = true;
    pollFrequency = "*:0/1"; # Every minute
  };
}