git.delta.rocks / jrsonnet / refs/commits / c055cb1e122c

difftreelog

fix mkBytes argument

Yaroslav Bolyukin2024-07-07parent: #2a9ff81.patch.diff
in: trunk

1 file changed

modifiedlib/fleetLib.nixdiffbeforeafterboth
97 noNuls ? false,97 noNuls ? false,
98 }: {mkSecretGenerator, ...}:98 }: {mkSecretGenerator, ...}:
99 mkSecretGenerator {99 mkSecretGenerator {
100 script = ''100 script = ''
101 mkdir $out101 mkdir $out
102 gh generate bytes --count=${toString count} --encoding=${encoding} -s $out/secret \102 gh generate bytes --count=${toString count} --encoding=${encoding} -o $out/secret \
103 ${optionalString noNuls "--no-nuls"}103 ${optionalString noNuls "--no-nuls"}
104 '';104 '';
105 };105 };
106 mkHexBytes = {count ? 32}:106 mkHexBytes = {count ? 32}:
107 mkBytes {107 mkBytes {