Git Product home page Git Product logo

nether's Introduction

nether network

this is a flake which exports some functions to join the nether network

join with clan

If you are already using clan, you can just import this flake and configure it like this:

...
imports = [
  self.nether.nixosModules.hosts
];
clan.networking.zerotier = {
  networkId = "ccc5da5295c853d4";
  name = "nether";
};

Join with standalone flakes

If you don't use cLAN network or don't want this network as your primary. You can import our zerotier module:

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nether.url = "github:lassulus/nether";
inputs.nether.inputs.nixpkgs.follows = "nixpkgs";

 outputs = { self, nixpkgs, nether }: {
    nixosConfigurations."mynixos" = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = {
        inherit nether;
      };
      modules = [
       ./configuration.nix
       ./zerotier.nix
      ];
      ...
  }
{ self, config, pkgs, nether, ... }:
{
  imports = [
        nether.nixosModules.hosts
        nether.nixosModules.zerotier
  ];

    networking.extraHosts = nether.nixosModules.hosts.networking.extraHosts;
}

Adding host to network

First fork and then git clone the repository. Then for your host to be accepted into the network the id needs to be whitelisted.

sudo zerotier-cli info -j | jq -c '{"address": .address}' > hosts/"$(hostname)".json

Add multiple hosts via ssh:

for i in host1 host2; do ssh "root@$i.r" zerotier-cli info -j | jq -c '{"address": .address}' > hosts/"$i".json; done

then create a PR with your host file

nether's People

Contributors

davhau avatar jopejoe1 avatar lassulus avatar makefu avatar mic92 avatar qubasa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.