2022-07-31 10:23:30 +00:00
|
|
|
{ secret, ... }:
|
|
|
|
|
|
|
|
{
|
2022-11-11 15:11:54 +00:00
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"d /etc/container-webserver/weewx 0755 421 421"
|
|
|
|
"d /etc/container-webserver/weewx/html 0755 421 421"
|
|
|
|
];
|
|
|
|
|
2022-07-31 10:41:00 +00:00
|
|
|
# mosquitto
|
|
|
|
|
|
|
|
environment.etc."container-webserver/mosquitto/mosquitto.conf" = {
|
|
|
|
text = ''
|
|
|
|
listener 1883
|
|
|
|
password_file /mosquitto/config/users.conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
mode = "0644";
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.etc."container-webserver/mosquitto/users.conf" = {
|
|
|
|
text = secret.container.webserver.mosquitto.users;
|
|
|
|
mode = "0644";
|
|
|
|
};
|
|
|
|
|
2022-07-31 13:10:28 +00:00
|
|
|
# weewx
|
|
|
|
|
|
|
|
environment.etc."container-webserver/weewx/weewx.conf" = {
|
|
|
|
source = ../../secret/container/webserver/config/weewx.conf;
|
|
|
|
mode = "0644";
|
|
|
|
uid = 421;
|
|
|
|
gid = 421;
|
|
|
|
};
|
2022-07-31 10:23:30 +00:00
|
|
|
}
|