summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home/ham/calendar/nextcloud.nix
blob: 3eb68de7d1c89565d29e3968b7c7b7214dcae650 (plain)
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
32
33
34
35
36
37
38
39
40
41
let
  cred = import <secrets/ham/nextcloud-calendar>;
in
{
  services.home-assistant.config.calendar =
  [
    {
      platform = "caldav";
      inherit (cred) username password;
      url = "https://o.euer.krebsco.de/remote.php/dav";
      custom_calendars = [
        {
          name = "Gelbersack";
          calendar = "Abfall";
          search = "Gelber Sack.*";
        }
        {
          name = "Biomuell";
          calendar = "Abfall";
          search = "Bio.*";
        }
        {
          name = "Restmuell";
          calendar = "Abfall";
          search = "Rest.*";
        }
        {
          name = "Papiermuell";
          calendar = "Abfall";
          search = "Altpapier.*";
        }
        {
          name = "Kehrwoche";
          calendar = "Kehrwoche";
          search = ".*";
        }
      ];
    }

  ];
}