diff options
-rw-r--r-- | README | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ | |||
1 | icalproxy | ||
2 | ========= | ||
3 | |||
4 | Brightspace is the system where most of the stuff I need to hand in for uni is | ||
5 | registered in. It has this convenient feature where you can get an iCal feed of | ||
6 | all the deadlines of your assignments. But it also contains some 'junk' (sorry | ||
7 | Career Services) which I don't need to have cluttering my calendar. | ||
8 | |||
9 | Basically all junk can be filtered out using two regexes (of which I'm not sure | ||
10 | that the latter is still relevant). This program is a bit overengineered :) | ||
11 | My configuration for the provided NixOS module looks like this: | ||
12 | |||
13 | { | ||
14 | services.icalproxy = { | ||
15 | enable = true; | ||
16 | calendarUrl = "https://brightspace.ru.nl/d2l/le/calendar/feed/user/feed.ics"; | ||
17 | ignore = { | ||
18 | locationRegexes = [ | ||
19 | ".*Career Orientation Online \\((Dutch|International)\\).*$" | ||
20 | ]; | ||
21 | summaryRegexes = [ | ||
22 | "(Lecture \\d+ - )?Livestream \\d{1,2}-\\d{1,2}-\\d{4} .*- Due$" | ||
23 | ]; | ||
24 | }; | ||
25 | port = "8084"; | ||
26 | userTokens = { | ||
27 | "<I am not going to put this here!>" = { | ||
28 | hash = "<neither this>"; | ||
29 | salt = "<nor this>"; | ||
30 | }; | ||
31 | # Did I say how I think this was overengineered? | ||
32 | }; | ||
33 | }; | ||
34 | } | ||
35 | |||
36 | It is forgiven that this is not a 12 factor app because we have a NixOS module; | ||
37 | QED. | ||