2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
# SPDX-FileContributor: Maurice Debray <maurice.debray@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-02-02 10:51:31 +01: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
|
|
|
};
|
2024-02-02 10:51:31 +01:00
|
|
|
in
|
|
|
|
{
|
2023-09-26 18:12:56 +02:00
|
|
|
imports = [ ./module.nix ];
|
|
|
|
|
|
|
|
dgn-linkal = {
|
|
|
|
enable = true;
|
|
|
|
domain = host;
|
|
|
|
|
|
|
|
inherit calendarGroups;
|
|
|
|
};
|
|
|
|
}
|