summaryrefslogtreecommitdiffstats
path: root/2configs/bureautomation/ota.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2019-04-17 20:46:58 +0200
committermakefu <github@syntax-fehler.de>2019-04-17 20:46:58 +0200
commit86a04cded20d67d60b348b81d31305bcb04ff12a (patch)
tree1be199ba22a2230b01752ef43bd3c17d1c976642 /2configs/bureautomation/ota.nix
parent2dd3f5f8f95284814a3a69f96e6d1affaf7a1ac1 (diff)
ma bureautomation: refactor
Diffstat (limited to '2configs/bureautomation/ota.nix')
-rw-r--r--2configs/bureautomation/ota.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/2configs/bureautomation/ota.nix b/2configs/bureautomation/ota.nix
new file mode 100644
index 000000000..f2f931d21
--- /dev/null
+++ b/2configs/bureautomation/ota.nix
@@ -0,0 +1,15 @@
+{
+ # mosquitto_pub -t /bam/sonoffs/cmnd/OtaUrl -m "http://192.168.8.11/sonoff.bin"
+ # mosquitto_pub -t /bam/sonoffs/cmnd/upgrade -m "6.5.0"
+ # wget https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.5.0/sonoff.bin
+ # wget https://github.com/arendst/Sonoff-Tasmota/releases/download/v6.5.0/sonoff-minimal.bin
+ services.nginx = {
+ enable = true;
+ virtualHosts."192.168.8.11" = {
+ root = "/var/www/tasmota";
+ extraConfig = ''
+ autoindex on;
+ '';
+ };
+ };
+}