+weather
This commit is contained in:
parent
63df3a7ed2
commit
3b8a40fe95
7
data.nix
7
data.nix
@ -33,10 +33,13 @@ rec {
|
||||
hass = 8123;
|
||||
prometheus = 9001;
|
||||
tailscale = 41641;
|
||||
exporters.node = 9002;
|
||||
exporters = {
|
||||
|
||||
node = 9002;
|
||||
weather = 9011;
|
||||
# non-configurable in caddy as of 2023-09-06
|
||||
exporters.caddy = 2019;
|
||||
caddy = 2019;
|
||||
};
|
||||
};
|
||||
|
||||
people_pubkeys = {
|
||||
|
@ -84,6 +84,22 @@ in
|
||||
tmpfiles.rules = [ "d /var/www 0755 motiejus users -" ];
|
||||
|
||||
services = {
|
||||
weather-exporter = {
|
||||
description = "Weather exporter for Vilnius";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "network.target.target" ];
|
||||
path = with pkgs; [
|
||||
coreutils
|
||||
jq
|
||||
curl
|
||||
bash
|
||||
];
|
||||
serviceConfig = {
|
||||
type = "notify";
|
||||
ExecStart = "${pkgs.systemd}/bin/systemd-socket-activate -a --inetd -l ${toString myData.ports.exporters.weather} ${../../pkgs/weather/main}";
|
||||
ProtectSystem = "strict";
|
||||
};
|
||||
};
|
||||
caddy =
|
||||
let
|
||||
irc = config.mj.services.nsd-acme.zones."irc.jakstys.lt";
|
||||
|
Loading…
Reference in New Issue
Block a user