tvl-depot/users/Profpatsch/sync-abfall-ics-aichach-friedberg/default.nix
Profpatsch 7c0874c228 feat(users/Profpatsch/sync-abfall): caldav vdirsyncer config gen
Gonna have to generate some vdirsyncer config, reusing the toIni
stuff, nice.

Change-Id: I036ce9990f70d3b035e47151f336d0d3971f2c91
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5888
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
2022-06-19 13:29:02 +00:00

31 lines
638 B
Nix

{ depot, pkgs, ... }:
let
sync-to-dir = depot.users.Profpatsch.writers.python3
{
name = "sync-ics-to-dir";
libraries = (py: [
py.httpx
py.icalendar
]);
} ./sync-ics-to-dir.py;
config =
depot.users.Profpatsch.importDhall.importDhall
{
root = ./..;
files = [
"sync-abfall-ics-aichach-friedberg/ics-to-caldav.dhall"
"dhall/lib.dhall"
"ini/ini.dhall"
];
main = "sync-abfall-ics-aichach-friedberg/ics-to-caldav.dhall";
deps = [
];
}
depot.users.Profpatsch.ini.externs;
in
{ inherit config; }