mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-01 20:46:12 +01:00
aff0158ef7
Signed-off-by: magic_rb <magic_rb@redalder.org>
34 lines
566 B
Nix
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";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|