From ff4f492ecd7dc1dc4b1965618c7906c5206a8d54 Mon Sep 17 00:00:00 2001 From: jaina heartles Date: Thu, 29 Aug 2024 20:03:55 -0400 Subject: [PATCH] use hostname files for nebula --- nebula.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nebula.nix b/nebula.nix index ff4325d..062a019 100644 --- a/nebula.nix +++ b/nebula.nix @@ -1,11 +1,11 @@ -{ lib, pkgs, ... }: +{ lib, pkgs, config, ... }: { environment.systemPackages = with pkgs; [ nebula ]; services.nebula.networks.home = { enable = true; - cert = "/var/lib/nebula/harrowhark.crt"; - key = "/var/lib/nebula/harrowhark.key"; + cert = "/var/lib/nebula/${config.networking.hostName}.crt"; + key = "/var/lib/nebula/${config.networking.hostName}.key"; ca = "/var/lib/nebula/ca.crt"; lighthouses = [ "172.16.0.1" ];