forked from unionlabs/union
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…nionlabs#126) * feat(tools): add mdx * chore: cleanup * feat: add tera to tools * ci(docgen): add check to verify docs are up to date * feat(docs): add nix to supported languages * fix(tera): set the name field in the tera derivation * fix(tera): set both name and pname * fix: remove pname and add version * feat(docs): switch to yarn with workspace * fix: remove unused self binding * ci(spellcheck): add chevdor * chore: attempt to appease ci gods * docs: do not emit node_modules in /Users/k/union/union/docs/outputs/out * ci(docs): unnest artifacts from build folder * chore: run docgen
- Loading branch information
1 parent
2aaea05
commit 2c1bb1b
Showing
17 changed files
with
15,664 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,52 +16,10 @@ Below is an example configuration.nix which can be used in production. | |
The example currently uses `git+ssh://` syntax rather than `github:` syntax because our repository is not public yet. Once it is, this will be simplified. When this happens, `GIT_LFS_SKIP_SMUDGE` will also no longer be required. | ||
::: | ||
|
||
```nix | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; | ||
union.url = "git+ssh://[email protected]/unionfi/union"; | ||
}; | ||
outputs = inputs@{self, nixpkgs, union,... }: | ||
{ | ||
nixosConfigurations.testnet-validator = | ||
let | ||
system = "x86_64-linux"; | ||
pkgs = import nixpkgs { inherit system; }; | ||
in | ||
nixpkgs.lib.nixosSystem { | ||
inherit system; | ||
modules = [ | ||
union.nixosModules.unionvisor | ||
{ | ||
system.stateVersion = "23.11"; | ||
# Base configuration for openstack-based VPSs | ||
imports = [ "${nixpkgs}/nixos/modules/virtualisation/openstack-config.nix" ]; | ||
import Configuration from "!!raw-loader!../../../unionvisor/usage.nix"; | ||
import CodeBlock from "@theme/CodeBlock"; | ||
|
||
# Allow other validators to reach you | ||
networking.firewall.allowedTCPPorts = [ 80 443 26656 26657 ]; | ||
# Unionvisor module configuration | ||
services.unionvisor = { | ||
enable = true; | ||
moniker = "your-testnet-moniker"; | ||
}; | ||
# OPTIONAL: Some useful inspection tools for when you SSH into your validator | ||
environment.systemPackages = with pkgs; [ | ||
bat | ||
bottom | ||
helix | ||
jq | ||
neofetch | ||
tree | ||
]; | ||
} | ||
]; | ||
}; | ||
}; | ||
} | ||
``` | ||
<CodeBlock language="nix">{Configuration}</CodeBlock> | ||
|
||
You can then deploy the configuration by running | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.