rc3ticker: init

This commit is contained in:
Astro 2022-12-20 13:43:27 +01:00
parent 9ec93e6a99
commit 9a149b1521
2 changed files with 71 additions and 4 deletions

View File

@ -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 = {

View File

@ -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";
};
};
};
};
}