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" ];