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.
This commit is contained in:
parent
4fce894940
commit
15372dc4d4
1 changed files with 7 additions and 4 deletions
|
@ -56,8 +56,10 @@ let
|
||||||
default = null;
|
default = null;
|
||||||
description = mdDoc ''
|
description = mdDoc ''
|
||||||
Specifies the hashed password for the MQTT User.
|
Specifies the hashed password for the MQTT User.
|
||||||
To generate hashed password install `mosquitto`
|
To generate hashed password install the `mosquitto`
|
||||||
package and use `mosquitto_passwd`.
|
package and use `mosquitto_passwd`, then extract
|
||||||
|
the second field (after the `:`) from the generated
|
||||||
|
file.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -68,8 +70,9 @@ let
|
||||||
description = mdDoc ''
|
description = mdDoc ''
|
||||||
Specifies the path to a file containing the
|
Specifies the path to a file containing the
|
||||||
hashed password for the MQTT user.
|
hashed password for the MQTT user.
|
||||||
To generate hashed password install `mosquitto`
|
To generate hashed password install the `mosquitto`
|
||||||
package and use `mosquitto_passwd`.
|
package and use `mosquitto_passwd`, then remove the
|
||||||
|
`username:` prefix from the generated file.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue