summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bureautomation/ota.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-04-17 22:04:03 +0200
committertv <tv@krebsco.de>2019-04-17 22:04:03 +0200
commitffd36f5554256f74beb6ade469666b00f72b22a9 (patch)
tree51e77c75388d9f9e032bdb09427bcaace2b846c7 /makefu/2configs/bureautomation/ota.nix
parente051fecf9c19d446d6588bd21070fd1a799b97a3 (diff)
parent1314eb9284697b46d8208c138cf2349816e15c5f (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/bureautomation/ota.nix')
-rw-r--r--makefu/2configs/bureautomation/ota.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/makefu/2configs/bureautomation/ota.nix b/makefu/2configs/bureautomation/ota.nix
new file mode 100644
index 000000000..f2f931d21
--- /dev/null
+++ b/makefu/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;
+ '';
+ };
+ };
+}