Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PrivateStorageio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PrivateStorage
PrivateStorageio
Commits
cd9ce8ee
Commit
cd9ce8ee
authored
Sep 5, 2019
by
Jean-Paul Calderone
Browse files
Options
Downloads
Patches
Plain Diff
a few more comments and formatting changes
parent
b3e14af9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2
Testing and production grids
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
morph/storage000.nix
+18
-12
18 additions, 12 deletions
morph/storage000.nix
with
18 additions
and
12 deletions
morph/storage000.nix
+
18
−
12
View file @
cd9ce8ee
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment