dotfiles/nixng/containers/home-assistant/mosquitto.nix
magic_rb aff0158ef7
Reformat the whole flake using alejandra
Signed-off-by: magic_rb <magic_rb@redalder.org>
2024-03-02 22:17:03 +01:00

34 lines
566 B
Nix

{
makeSystem,
nixpkgs,
}:
makeSystem {
system = "x86_64-linux";
name = "nixng-mosquitto";
inherit nixpkgs;
config = {pkgs, ...}: {
config = {
dumb-init = {
enable = true;
type.services = {};
};
init.services.mosquitto = {
shutdownOnExit = true;
};
services.mosquitto = {
enable = true;
config = {
listener = [
"1883 0.0.0.0"
{
password_file = "/secrets/mqtt_password";
}
];
};
};
};
};
}