From 60ee50c3778baff9c96384eb8e217287c2f07eb8 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Wed, 4 Sep 2019 20:12:37 -0400 Subject: [PATCH] enable tahoe-lafs --- morph/staging002.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/morph/staging002.nix b/morph/staging002.nix index 04ae604c..c671f233 100644 --- a/morph/staging002.nix +++ b/morph/staging002.nix @@ -8,7 +8,10 @@ in ./staging002-hardware.nix # Configure it as a system operated by 100TB. ../nixos/modules/100tb.nix - ]; + # Bring in our module for configuring the Tahoe-LAFS service and other + # Private Storage-specific things. + ../nixos/modules/private-storage.nix + ]; # Pass the configuration specific to this host to the 100TB module to be # expanded into a complete system configuration. See the 100tb module for @@ -18,6 +21,15 @@ in # it should be a number. "100tb".config = cfg; + # Turn on the Private Storage (Tahoe-LAFS) service. + services.private-storage = + { enable = true; + # Get the public IPv4 address from the node configuration. + inherit (cfg) publicIPv4; + # And the port to operate on is specified via parameter. + inherit publicStoragePort; + }; + # This value determines the NixOS release with which your system is to be # compatible, in order to avoid breaking some software such as database # servers. You should change this only after NixOS release notes say you -- GitLab