From 8510811c0787cb0bfaebfb9fc07ed53cff27a4e6 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sat, 30 Mar 2024 21:05:32 +0100 Subject: [PATCH] delete eol modules --- modules/bruit/default.nix | 32 ------------- modules/linkal/calendars.json | 88 ----------------------------------- modules/linkal/default.nix | 33 ------------- 3 files changed, 153 deletions(-) delete mode 100644 modules/bruit/default.nix delete mode 100644 modules/linkal/calendars.json delete mode 100644 modules/linkal/default.nix diff --git a/modules/bruit/default.nix b/modules/bruit/default.nix deleted file mode 100644 index 68747f3..0000000 --- a/modules/bruit/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ lib, config, ... }: -with lib; -let - cfg = config.luj.bruit; - port = 3500; -in -{ - - options.luj.bruit = { - - enable = mkEnableOption "activate bruit monitoring"; - - nginx.enable = mkEnableOption "activate nginx"; - nginx.subdomain = mkOption { - type = types.str; - }; - }; - - config = mkIf cfg.enable ( - mkMerge [{ - services.grafana.enable = true; - services.grafana.settings.server.http_port = port; - luj.influxdb.enable = true; - luj.influxdb.nginx = { - enable = true; - subdomain = "influxdb"; - }; - } - - (mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))]); - -} diff --git a/modules/linkal/calendars.json b/modules/linkal/calendars.json deleted file mode 100644 index 2a59c72..0000000 --- a/modules/linkal/calendars.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "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/2KGkWzBJGorxzyTW": { - "name": "La Nuit de l'ENS", - "short_name": "La Nuit" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/w442JdS5AaQ6czrP": { - "name": "Écriv'ENS" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/fRtjDkjrZyn6fxd8": { - "name": "K-Fêt", - "color": "#c63b52", - "default_location": "K-Fêt" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/gsZtZK8c9EmREofn": { - "name": "Ernestophone" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/dTHrXnYgsEoSTjWB": { - "name": "Évènements (COF)", - "short_name": "COF" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/bCgRFByHLiCCNc55": { - "name": "Assemblées Générales (COF)", - "short_name": "AG COF" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/r4yJZDHjwNtH8wkR": { - "name": "BdA" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/ZtWm3MYSi388k2yk": { - "name": "DDR" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/T5WoHbs4FT5A945Z": { - "name": "CinéClub" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/6SHG6cg9d7S3qqwD": { - "name": "Club Inutile ☔", - "initial": false - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/TFjE83ASCMK9rfRi": { - "name": "BandarrêtdurgENS", - "short_name": "Banda" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/r4yJZDHjwNtH8wkR": { - "name": "Évènements (BdA)" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/83AkowSYPnYrjSFr": { - "name": "Spectacles du tirage BdA" - }, - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/kR8fMzmf4ciop9Je": { - "name": "Club Jeux", - "color": "#5f9ae0" - }, - - - - "https://framagenda.org/remote.php/dav/public-calendars/iXGysEGxo7EsKjwG": { - "name": "Ambassadeur·rice·s santé", - "color": "#f5a142" - }, - "https://framagenda.org/remote.php/dav/public-calendars/AYNpoC674yAjEmRy": { - "name": "L'Hômonerie" - }, - - "https://cloud.eleves.ens.fr/remote.php/dav/public-calendars/TyMrLaPPDzT7yAGC": { - "name": "BDS" - }, - "https://nuage.beta.rz.ens.wtf/remote.php/dav/public-calendars/5WrcagPPARQ3BD87": { - "name": "Club réseau", - "default_location": "Cave d'hackENS" - }, - "https://nuage.beta.rz.ens.wtf/remote.php/dav/public-calendars/TFEAKjAgNFQZpNjo": { - "name": "HackENS", - "default_location": "Cave d'hackENS" - }, - "https://framagenda.org/remote.php/dav/public-calendars/TFjE83ASCMK9rfRi": { - "name": "BandarrêtdurgENS", - "short_name": "Banda" - }, - "https://framagenda.org/remote.php/dav/public-calendars/T5WoHbs4FT5A945Z": { - "name": "CinéClub" - } - } -} - diff --git a/modules/linkal/default.nix b/modules/linkal/default.nix deleted file mode 100644 index d5178cd..0000000 --- a/modules/linkal/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ lib, pkgs, config, ... }: -with lib; -let - cfg = config.luj.linkal; - port = 8443; -in -{ - - options.luj.linkal = { - enable = mkEnableOption "activate linkal service"; - }; - - config = mkIf cfg.enable { - - systemd.services.linkal = { - description = "linkal"; - wantedBy = [ "multi-user.target" ]; - serviceConfig.Type = "simple"; - serviceConfig.ExecStart = "${pkgs.linkal}/bin/linkal --calendar-file ${./calendars.json}"; - }; - - - luj.nginx.enable = true; - services.nginx.virtualHosts."calendar.ens.malka.sh" = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:${toString port}/"; - }; - }; - - }; -}