use hostname files for nebula

This commit is contained in:
jaina heartles 2024-08-29 20:03:55 -04:00
parent d72878d820
commit ff4f492ecd

View file

@ -1,11 +1,11 @@
{ lib, pkgs, ... }: { lib, pkgs, config, ... }:
{ {
environment.systemPackages = with pkgs; [ nebula ]; environment.systemPackages = with pkgs; [ nebula ];
services.nebula.networks.home = { services.nebula.networks.home = {
enable = true; enable = true;
cert = "/var/lib/nebula/harrowhark.crt"; cert = "/var/lib/nebula/${config.networking.hostName}.crt";
key = "/var/lib/nebula/harrowhark.key"; key = "/var/lib/nebula/${config.networking.hostName}.key";
ca = "/var/lib/nebula/ca.crt"; ca = "/var/lib/nebula/ca.crt";
lighthouses = [ "172.16.0.1" ]; lighthouses = [ "172.16.0.1" ];