From 9a149b1521e9777e418c8da3319fb8a8a534ff6e Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 20 Dec 2022 13:43:27 +0100 Subject: [PATCH] rc3ticker: init --- flake.nix | 16 +++++++--- hosts/rc3ticker/default.nix | 59 +++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 hosts/rc3ticker/default.nix diff --git a/flake.nix b/flake.nix index 4c6ef92d..ed6df85e 100644 --- a/flake.nix +++ b/flake.nix @@ -157,10 +157,10 @@ ticker = { url = "git+https://gitea.c3d2.de/astro/ticker.git"; inputs = { - fenix.follows = "fenix"; - naersk.follows = "naersk"; - nixpkgs.follows = "nixos"; - utils.follows = "flake-utils"; + # fenix.follows = "fenix"; + # naersk.follows = "naersk"; + # nixpkgs.follows = "nixos"; + # utils.follows = "flake-utils"; }; }; tigger = { @@ -736,6 +736,14 @@ ./hosts/buzzrelay ]; }; + + rc3ticker = nixosSystem' { + modules = [ + self.nixosModules.cluster-options + ticker.nixosModules.ticker + ./hosts/rc3ticker + ]; + }; }; nixosModules = { diff --git a/hosts/rc3ticker/default.nix b/hosts/rc3ticker/default.nix new file mode 100644 index 00000000..0607d918 --- /dev/null +++ b/hosts/rc3ticker/default.nix @@ -0,0 +1,59 @@ +{ zentralwerk, config, ... }: + +{ + deployment = { + mem = 1 * 1024; + vcpu = 4; + }; + system.stateVersion = "22.11"; + networking = { + hostName = "rc3ticker"; + firewall.allowedTCPPorts = [ 80 443 ]; + }; + c3d2.hq.statistics.enable = true; + + services = { + nginx = { + enable = true; + virtualHosts."rc3.c3d2.de" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://localhost:8400"; + }; + }; + + ticker = { + updateInterval = "hourly"; + config.calendars = { + chilyconchaos = { + url = "https://ramac.mudbyte.de/remote.php/dav/public-calendars/YTtwyZcXsmZDfSoo/?export"; + color = "#rgb(255,47,0)"; + }; + xrelog = { + url = "https://pretalx.c3voc.de/xrelog-2022/schedule/export/schedule.ics"; + color = "#000000"; + }; + freiraeumen = { + url = "https://forum.freiraeumen.jetzt/freiraumforum/schedule/export/schedule.ics"; + color = "#E41F13"; + }; + rtc = { + url = "https://cfp.ccc-p.org/rtc22/schedule/export/schedule.ics"; + color = "rgb(86,100,121)"; + }; + hacking-in-hell = { + url = "https://pretalx.c3voc.de/hacking-in-hell-2022/schedule/export/schedule.ics"; + color = "#CF3F3F"; + }; + fireshonks = { + url = "https://pretalx.c3voc.de/fire-shonks-2022/schedule/export/schedule.ics"; + color = "rgb(29,45,73)"; + }; + hip = { + url = "https://pretalx.c3voc.de/hip-berlin-2022/schedule/export/schedule.ics"; + color = "#FE0EF4"; + }; + }; + }; + }; +}