added van_weather

This commit is contained in:
2026-02-04 18:46:30 -05:00
parent 89e37249af
commit 557c1a4d5d
6 changed files with 348 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
pkgs,
inputs,
...
}:
{
systemd.services.van-weather = {
description = "Van Weather Service";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment = {
PYTHONPATH = "${inputs.self}/";
};
serviceConfig = {
Type = "simple";
ExecStart = "${pkgs.my_python}/bin/python -m python.van_weather.main";
EnvironmentFile = "/etc/van_weather.env";
Restart = "on-failure";
RestartSec = "5s";
StandardOutput = "journal";
StandardError = "journal";
NoNewPrivileges = true;
ProtectSystem = "strict";
ProtectHome = "read-only";
PrivateTmp = true;
ReadOnlyPaths = [ "${inputs.self}" ];
};
};
}