1
0
Fork 0
dotfiles/container/webserver/config/mosquitto.nix

23 lines
464 B
Nix
Raw Normal View History

2022-07-30 22:44:20 +00:00
let
2022-07-30 22:45:26 +00:00
secret = import ../../../secret/container/webserver.nix;
2022-07-30 22:44:20 +00:00
in
2022-07-30 22:36:06 +00:00
{
2022-07-30 23:13:14 +00:00
environment.etc."container-webserver/mosquitto/mosquitto.conf" = {
text = ''
listener 1883
password_file /mosquitto/config/users.conf
'';
2022-07-30 22:44:20 +00:00
2022-07-30 23:13:14 +00:00
mode = "0644";
uid = 1883;
gid = 1883;
};
environment.etc."container-webserver/mosquitto/users.conf" = {
text = secret.container.webserver.mosquitto.users;
mode = "0644";
uid = 1883;
gid = 1883;
};
2022-07-30 22:36:06 +00:00
}