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

a few more comments and formatting changes

parent b3e14af9
No related branches found
No related tags found
1 merge request!2Testing and production grids
let
# Get the configuration that's specific to this node.
cfg = import ./storage000-config.nix;
in
{ publicStoragePort, ... }:
{
imports =
[ # Include the results of the hardware scan.
# Define the function that defines the node. Accept the public storage server
# port argument so we can configure Tahoe-LAFS with it. Accept but ignore any
# other arguments.
{ publicStoragePort, ... }: {
# Any extra NixOS modules to load on this server.
imports = [
# Include the results of the hardware scan.
./storage000-hardware.nix
# Configure it as a system operated by 100TB.
../nixos/modules/100tb.nix
......@@ -22,8 +27,9 @@ in
"100tb".config = cfg;
# Turn on the Private Storage (Tahoe-LAFS) service.
services.private-storage =
{ enable = true;
services.private-storage = {
# Yep. Turn it on.
enable = true;
# Get the public IPv4 address from the node configuration.
inherit (cfg) publicIPv4;
# And the port to operate on is specified via parameter.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment