2023-10-23 11:35:28 +02:00
|
|
|
{ sources, pkgs, lib, ... }:
|
2023-09-26 18:12:56 +02:00
|
|
|
|
|
|
|
let
|
2023-09-29 13:27:27 +02:00
|
|
|
host = "cal.dgnum.eu";
|
2023-09-26 18:12:56 +02:00
|
|
|
|
2023-10-23 11:35:28 +02:00
|
|
|
metis2linkal = import ./metis-to-linkal.nix { inherit pkgs lib; };
|
|
|
|
|
2023-09-26 18:12:56 +02:00
|
|
|
calendarGroups = {
|
|
|
|
luj-current = {
|
2023-09-29 13:27:27 +02:00
|
|
|
port = 8444;
|
2023-09-26 18:12:56 +02:00
|
|
|
calendars = {
|
|
|
|
"https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/LLWm8qK9iC5YGrrR" = {
|
|
|
|
name = "Délégation Générale";
|
|
|
|
short_name = "DG";
|
|
|
|
};
|
|
|
|
|
|
|
|
"https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/fRtjDkjrZyn6fxd8" = {
|
|
|
|
name = "K-Fêt";
|
|
|
|
color = "#c63b52";
|
|
|
|
default_location = "K-Fêt";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-10-23 11:35:28 +02:00
|
|
|
ens = {
|
|
|
|
port = 8445;
|
|
|
|
calendars = metis2linkal sources.metis;
|
|
|
|
};
|
2023-09-26 18:12:56 +02:00
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [ ./module.nix ];
|
|
|
|
|
|
|
|
dgn-linkal = {
|
|
|
|
enable = true;
|
|
|
|
domain = host;
|
|
|
|
|
|
|
|
inherit calendarGroups;
|
|
|
|
};
|
|
|
|
}
|