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
Branches
Tags
1 merge request!2Testing and production grids
let let
# Get the configuration that's specific to this node.
cfg = import ./storage000-config.nix; cfg = import ./storage000-config.nix;
in in
{ publicStoragePort, ... }: # 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
imports = # other arguments.
[ # Include the results of the hardware scan. { publicStoragePort, ... }: {
# Any extra NixOS modules to load on this server.
imports = [
# Include the results of the hardware scan.
./storage000-hardware.nix ./storage000-hardware.nix
# Configure it as a system operated by 100TB. # Configure it as a system operated by 100TB.
../nixos/modules/100tb.nix ../nixos/modules/100tb.nix
...@@ -22,8 +27,9 @@ in ...@@ -22,8 +27,9 @@ in
"100tb".config = cfg; "100tb".config = cfg;
# Turn on the Private Storage (Tahoe-LAFS) service. # Turn on the Private Storage (Tahoe-LAFS) service.
services.private-storage = services.private-storage = {
{ enable = true; # Yep. Turn it on.
enable = true;
# Get the public IPv4 address from the node configuration. # Get the public IPv4 address from the node configuration.
inherit (cfg) publicIPv4; inherit (cfg) publicIPv4;
# And the port to operate on is specified via parameter. # 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