Skip to content
Snippets Groups Projects
Commit 7ec68698 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Support configuring [node]tub.location

parent 570731a0
No related branches found
No related tags found
1 merge request!2Testing and production grids
......@@ -33,6 +33,14 @@ in
The package to use for the Tahoe-LAFS daemon.
'';
};
services.private-storage.tahoe.node."tub.location" = lib.mkOption
{ default = "disabled";
type = lib.types.str;
example = lib.literalExample "tcp:192.0.2.0:8098";
description = ''
A value for the [node]tub.location in tahoe.cfg.
'';
};
};
config = lib.mkIf cfg.enable
{ services.tahoe.nodes."storage" =
......@@ -42,6 +50,7 @@ in
# XXX Should try to name that is unique across the grid.
{ nickname = "storage";
"web.port" = "tcp:3456:interface=127.0.0.1";
"tub.location" = cfg.tahoe.node."tub.location";
};
storage =
{ enabled = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment