forked from clan/clan-core
matrix-synapse: add missing xkcdpass to password generator
This commit is contained in:
parent
4a752bb951
commit
36b1bb65af
@ -163,10 +163,7 @@ in
|
|||||||
name: user:
|
name: user:
|
||||||
lib.nameValuePair "matrix-password-${user.name}" {
|
lib.nameValuePair "matrix-password-${user.name}" {
|
||||||
secret."matrix-password-${user.name}" = { };
|
secret."matrix-password-${user.name}" = { };
|
||||||
generator.path = with pkgs; [
|
generator.path = with pkgs; [ xkcdpass ];
|
||||||
coreutils
|
|
||||||
pwgen
|
|
||||||
];
|
|
||||||
generator.script = ''
|
generator.script = ''
|
||||||
xkcdpass -n 4 -d - > "$secrets"/${lib.escapeShellArg "matrix-password-${user.name}"}
|
xkcdpass -n 4 -d - > "$secrets"/${lib.escapeShellArg "matrix-password-${user.name}"}
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user