Nebula: Difference between revisions

Klinger (talk | contribs)
mNo edit summary
Line 15: Line 15:
   environment.systemPackages = with pkgs; [ nebula ];
   environment.systemPackages = with pkgs; [ nebula ];
   services.nebula.networks.mesh = {
   services.nebula.networks.mesh = {
     enable = false;
     enable = true;
     isLighthouse = true;
     isLighthouse = true;
     cert = "/etc/nebulanode.crt";
     cert = "/etc/nebula/beacon.crt"; # The name of this lighthouse is beacon.
     key = "/etc/nebula/node.key";
     key = "/etc/nebula/beacon.key";
     ca = "/etc/nebula/ca.crt";
     ca = "/etc/nebula/ca.crt";
   };
   };
</syntaxhighlight>
The configuration files in `/etc/nebula` need to be readable by the Nebula service:
<syntaxhighlight lang="bash">
sudo chmod --reference /etc/nix /etc/nebula
sudo chmod --reference /etc/nix/nix.conf /etc/nebula/*
</syntaxhighlight>
</syntaxhighlight>