2020-07-01 11:43:07 +00:00
|
|
|
let
|
|
|
|
cred = import <secrets/ham/nextcloud-calendar>;
|
|
|
|
in
|
|
|
|
{
|
2020-11-18 21:23:33 +00:00
|
|
|
services.home-assistant.config.calendar =
|
|
|
|
[
|
|
|
|
{
|
|
|
|
platform = "caldav";
|
|
|
|
inherit (cred) username password;
|
|
|
|
url = "https://o.euer.krebsco.de/remote.php/dav";
|
2021-05-15 11:13:13 +00:00
|
|
|
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 = ".*";
|
|
|
|
}
|
|
|
|
];
|
2020-11-18 21:23:33 +00:00
|
|
|
}
|
2021-05-15 11:13:13 +00:00
|
|
|
|
2020-11-18 21:23:33 +00:00
|
|
|
];
|
2020-07-01 11:43:07 +00:00
|
|
|
}
|