From fa6ad02951a47bc4f34b4559f33dfff15a71ca40 Mon Sep 17 00:00:00 2001 From: Corbin Date: Tue, 19 Feb 2019 09:55:23 -0800 Subject: [PATCH] services.tahoe: Use `networking.hostName`. Previously we used nothing, leading to #25273. Big thanks to @t184256 for developing and testing this fix. Fixes #25273. --- nixos/modules/services/network-filesystems/tahoe.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/network-filesystems/tahoe.nix b/nixos/modules/services/network-filesystems/tahoe.nix index 534862a3c9e4..e7b048a6741c 100644 --- a/nixos/modules/services/network-filesystems/tahoe.nix +++ b/nixos/modules/services/network-filesystems/tahoe.nix @@ -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