shack/s3-power: update revision
This commit is contained in:
parent
31944ce77d
commit
c38f02c4d7
@ -47,6 +47,8 @@ in
|
|||||||
<stockholm/krebs/2configs/shack/mqtt_sub.nix>
|
<stockholm/krebs/2configs/shack/mqtt_sub.nix>
|
||||||
## Collect radioactive data and put into graphite
|
## Collect radioactive data and put into graphite
|
||||||
<stockholm/krebs/2configs/shack/radioactive.nix>
|
<stockholm/krebs/2configs/shack/radioactive.nix>
|
||||||
|
## mqtt.shack
|
||||||
|
<stockholm/krebs/2configs/shack/mqtt.nix>
|
||||||
## Collect local statistics via collectd and send to collectd
|
## Collect local statistics via collectd and send to collectd
|
||||||
<stockholm/krebs/2configs/stats/wolf-client.nix>
|
<stockholm/krebs/2configs/stats/wolf-client.nix>
|
||||||
|
|
||||||
|
14
krebs/2configs/shack/mqtt.nix
Normal file
14
krebs/2configs/shack/mqtt.nix
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
network.firewall.allowedTCPPorts = [ 1883 ];
|
||||||
|
network.firewall.allowedUDPPorts = [ 1883 ];
|
||||||
|
services.mosquitto = {
|
||||||
|
enable = true;
|
||||||
|
host = "0.0.0.0";
|
||||||
|
users = {};
|
||||||
|
# TODO: secure that shit
|
||||||
|
aclExtraConf = ''
|
||||||
|
pattern readwrite /#
|
||||||
|
'';
|
||||||
|
allowAnonymous = true;
|
||||||
|
};
|
||||||
|
}
|
@ -4,8 +4,8 @@ let
|
|||||||
pkg = pkgs.callPackage (
|
pkg = pkgs.callPackage (
|
||||||
pkgs.fetchgit {
|
pkgs.fetchgit {
|
||||||
url = "https://git.shackspace.de/rz/s3-power";
|
url = "https://git.shackspace.de/rz/s3-power";
|
||||||
rev = "36df203a8fc1af02b08f60ab8d49c849b01e711f";
|
rev = "b2b87b56bb40d714dbbecd1285566870b256aec4";
|
||||||
sha256 = "sha256:0i05vllnfwj02sfpmg2m8hy0zq27kww9ampiaix6dl5wbyjlp51j";
|
sha256 = "sha256:02wikwf3rgkkggwbwqisdvhlwd38w5pw011xhwvhnj114s3rynan";
|
||||||
}) {};
|
}) {};
|
||||||
home = "/var/lib/s3-power";
|
home = "/var/lib/s3-power";
|
||||||
cfg = toString <secrets/shack/s3-power.json>;
|
cfg = toString <secrets/shack/s3-power.json>;
|
||||||
|
Loading…
Reference in New Issue
Block a user