summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/networking/cjdns.nix
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2021-03-08 23:39:57 +0100
committerEmery Hemingway <ehmry@posteo.net>2021-03-26 11:35:09 +0100
commitc8d2f4a3a888aa9f202b9d9660df14fee55994f6 (patch)
tree54e87de8ad3f81a21b9b8ad5e844b0fe67cf47d4 /nixos/modules/services/networking/cjdns.nix
parente8daf611e580c4331168c9e91ac291851b577b40 (diff)
cjdns: reduce password length to 32
Maximum password length per cjdns code is somehwhere less than that, see https://github.com/cjdelisle/cjdns/blob/ecd01e7681d9b7a06d2673e49fcf9a76a580cb52/client/AdminClient.c#L80 Currently we generate 96 char long passwords that don't work This changes it so password length is just 32 chars long
Diffstat (limited to 'nixos/modules/services/networking/cjdns.nix')
-rw-r--r--nixos/modules/services/networking/cjdns.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/cjdns.nix b/nixos/modules/services/networking/cjdns.nix
index f116d6392ea7..e9a0e5af1a47 100644
--- a/nixos/modules/services/networking/cjdns.nix
+++ b/nixos/modules/services/networking/cjdns.nix
@@ -245,7 +245,7 @@ in
fi
if [ -z "$CJDNS_ADMIN_PASSWORD" ]; then
- echo "CJDNS_ADMIN_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 96)" \
+ echo "CJDNS_ADMIN_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)" \
>> /etc/cjdns.keys
fi
'';