Skip to content

kadena-io/chainweb-node-nixos-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A NixOS module for chainweb-node

This flake purposefully does NOT export a chainweb-node binary; That must be supplied into pkgs by the user, e.g. via an overlay.

There is a single output: nixosModules.chainweb-node. You can use it like this:

# flake.nix
{
  inputs.chainwebModule.url = "github:kadena-io/chainweb-node-nixos-module";

  outputs =
    { nixpkgs,
      chainwebModule,
      ...
    }:
    
    {
      nixosConfigurations = {
        chainweb-node = nixpkgs.lib.nixosSystem {
          system = "x86_64-linux";

          modules =
            let
              main = import ./configuration.nix;
              chainwebPackage = {
                nixpkgs.overlays = [ yourCoolChainwebOverlay ];
              };
              chainwebService = chainwebModule.nixosModules.chainweb-node;
            in
            [ 
              main
              chainwebPackage
              chainwebService
            ];
        };
      };
    };
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages