services.tahoe: Use `networking.hostName`.
Previously we used nothing, leading to #25273. Big thanks to @t184256 for developing and testing this fix. Fixes #25273.
This commit is contained in:
parent
3e3e3918f2
commit
fa6ad02951
|
@ -243,7 +243,10 @@ in
|
|||
preStart = ''
|
||||
if [ ! -d ${lib.escapeShellArg nodedir} ]; then
|
||||
mkdir -p /var/db/tahoe-lafs
|
||||
tahoe create-introducer ${lib.escapeShellArg nodedir}
|
||||
# See https://github.com/NixOS/nixpkgs/issues/25273
|
||||
tahoe create-introducer \
|
||||
--hostname="${config.networking.hostName}" \
|
||||
${lib.escapeShellArg nodedir}
|
||||
fi
|
||||
|
||||
# Tahoe has created a predefined tahoe.cfg which we must now
|
||||
|
|
Loading…
Reference in New Issue