From e7db9d3f69a6c7ff7f31d7e186c2e2d8c6af5424 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sun, 31 Jul 2022 00:44:20 +0200 Subject: [PATCH] webserver: Add mosquitto config --- container/webserver/config/mosquitto.nix | 5 +++++ secret/container/webserver.nix | Bin 0 -> 346 bytes 2 files changed, 5 insertions(+) create mode 100644 secret/container/webserver.nix diff --git a/container/webserver/config/mosquitto.nix b/container/webserver/config/mosquitto.nix index 571f635..19e79d1 100644 --- a/container/webserver/config/mosquitto.nix +++ b/container/webserver/config/mosquitto.nix @@ -1,6 +1,11 @@ +let + secret = import ../../secret/container/webserver.nix; +in { environment.usr."local/etc/container-webserver/mosquitto/mosquitto.conf".text = '' listener 1883 password_file /mosquitto/config/users.conf ''; + + environment.usr."local/etc/container-webserver/mosquitto/users.conf".text = secret.container.webserver.mosquitto.users; } diff --git a/secret/container/webserver.nix b/secret/container/webserver.nix new file mode 100644 index 0000000000000000000000000000000000000000..b85368b00d47086df71f046f87dc876fff9af543 GIT binary patch literal 346 zcmV-g0j2%`M@dveQdv+`07Y2!Q8DW&Wm)N3(V{TQcLQkl`~Z|q2Lg-nxY&Bt#9A7H zb-2e|6l1j}e8O9q3B5aoV@-=9GBksz&bOop-VFB6GiRs&#!y`e+vBM@LR z7im|8W3V`a36lfHYNuR{TK>q@4DHQ^AqSx;4R#G^hqG{no^d9dJ!srkwd>0DYNd$f zku{gN?U>;U6s)gy58=bYbbo$ju>(DQq#gsPx3B7d?AtAJoqa@DW?*OrWVP=EZ8|(z5y8r+H literal 0 HcmV?d00001