Use attrsets
This commit is contained in:
parent
6fb6b3ad3f
commit
7aac81a70f
|
@ -10,17 +10,19 @@ let
|
|||
};
|
||||
luftqualitaetStations = [ "1672" "1649" "1680" "1639" ];
|
||||
in {
|
||||
c3d2.isInHq = false;
|
||||
c3d2.autoUpdate = true;
|
||||
c3d2 = {
|
||||
isInHq = false;
|
||||
autoUpdate = true;
|
||||
};
|
||||
|
||||
networking.hostName = "scrape";
|
||||
networking.interfaces.eth0.ipv4.addresses = [{
|
||||
networking = {
|
||||
hostName = "scrape";
|
||||
interfaces.eth0.ipv4.addresses = [{
|
||||
address = "172.20.73.32";
|
||||
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
|
||||
}];
|
||||
networking.defaultGateway = "172.20.73.1";
|
||||
# Required for deployment
|
||||
services.openssh.enable = true;
|
||||
defaultGateway = "172.20.73.1";
|
||||
};
|
||||
|
||||
users.groups.scrape = {};
|
||||
users.users.scrape = {
|
||||
|
|
|
@ -2,29 +2,39 @@
|
|||
|
||||
with lib;
|
||||
|
||||
{ boot.isContainer = true;
|
||||
boot.loader.initScript.enable = true;
|
||||
networking.interfaces.eth0.ipv4.addresses = [{ address = "172.20.73.52"; prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len; }];
|
||||
networking.interfaces.eth0.useDHCP = false;
|
||||
networking.defaultGateway = "172.20.73.1";
|
||||
networking.nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
||||
networking.hostName = mkDefault "ticker";
|
||||
networking.useDHCP = false;
|
||||
networking.firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||
nix.useSandbox = false;
|
||||
time.timeZone = "Europe/Berlin";
|
||||
services.openssh.enable = true;
|
||||
{
|
||||
c3d2.hq.statistics.enable = true;
|
||||
|
||||
services.nginx.enable = true;
|
||||
services.nginx.virtualHosts."ticker.c3d2.de" = {
|
||||
boot = {
|
||||
isContainer = true;
|
||||
loader.initScript.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
interfaces.eth0 = {
|
||||
ipv4.addresses = [{ address = "172.20.73.52"; prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len; }];
|
||||
useDHCP = false;
|
||||
};
|
||||
defaultGateway = "172.20.73.1";
|
||||
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
||||
hostName = "ticker";
|
||||
useDHCP = false;
|
||||
firewall.allowedTCPPorts = [ 22 80 443 ];
|
||||
};
|
||||
|
||||
services = {
|
||||
nginx = {
|
||||
enable = true;
|
||||
virtualHosts."ticker.c3d2.de" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://localhost:8400";
|
||||
};
|
||||
};
|
||||
|
||||
services.ticker.updateInterval = "hourly";
|
||||
services.ticker.config.calendars = {
|
||||
ticker = {
|
||||
updateInterval = "hourly";
|
||||
config.calendars = {
|
||||
c3d2 = {
|
||||
url = "https://c3d2.de/ical.ics";
|
||||
color = "#BFA73F";
|
||||
|
@ -130,4 +140,6 @@ with lib;
|
|||
color = "#723465";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user