nixos/mosquitto: clarify hashedPassword generation

unfortunately we cannot use other tools (like mkpasswd) instead of
mosquitto_passwd because mosquitto is incompatible with the standard
crypt format.

pennae 15372dc4 4fce8949

Changed files
+7 -4
nixos
modules
services
networking
+7 -4
nixos/modules/services/networking/mosquitto.nix
···
default = null;
description = mdDoc ''
Specifies the hashed password for the MQTT User.
-
To generate hashed password install `mosquitto`
-
package and use `mosquitto_passwd`.
'';
};
···
description = mdDoc ''
Specifies the path to a file containing the
hashed password for the MQTT user.
-
To generate hashed password install `mosquitto`
-
package and use `mosquitto_passwd`.
'';
};
···
default = null;
description = mdDoc ''
Specifies the hashed password for the MQTT User.
+
To generate hashed password install the `mosquitto`
+
package and use `mosquitto_passwd`, then extract
+
the second field (after the `:`) from the generated
+
file.
'';
};
···
description = mdDoc ''
Specifies the path to a file containing the
hashed password for the MQTT user.
+
To generate hashed password install the `mosquitto`
+
package and use `mosquitto_passwd`, then remove the
+
`username:` prefix from the generated file.
'';
};