https://github.com/onsails/nym-validator-flake
https://github.com/onsails/nym-validator-flake
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onsails/nym-validator-flake
- Owner: onsails
- Created: 2021-05-07T23:03:58.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-14T18:22:22.000Z (about 5 years ago)
- Last Synced: 2025-08-28T18:09:46.260Z (10 months ago)
- Language: Nix
- Size: 13.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nym Validator flake
## nymd package
This flake builds `nymd` in a way closest to [the official instruction](https://nymtech.net/docs/run-nym-nodes/validators/).
The resulting binary is linked to a `libwasm.so` which is already in the store upon nymd build.
```bash
nix build .#packages.x86_64-linux.nymd
```
## nymd NixOS systemd service
flake.nix:
```nix
{
inputs = {
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable;
nymd-src.url = github:onsails/nym-validator-flake;
};
outputs = { nixpkgs-unstable, nymd-src }: {
nixosConfigurations.node-name = nixpkgs-unstable.lib.nixosSystem(
let system = "x86_64-linux";
in
{
inherit system;
modules = [
# other modules for example:
# "${nixpkgs-unstable}/nixos/modules/virtualisation/google-compute-image.nix"
inputs.nymd-src.nixosModules.${system}.nymd
({lib, ...}: {
nixpkgs.overlays = [
(self: super: {
nymd = inputs.nymd-src.packages.${system}.nymd;
})
];
services.nymd = {
enable = true;
name = "Your Validator Name";
publicAddr = {
ip = "sentry node ip";
port = "sentry node port";
};
};
})
];
}
);
};
}
```
You can also enable prometheus monitoring, see [options](https://github.com/onsails/nym-validator-flake/tree/master/nix/nixos-module.nix).