nebula: Rename options for public key and certificate paths for clarity

This commit is contained in:
SebastianStork 2025-12-25 20:27:13 +01:00
parent 10362bd42b
commit 21b4e04613
Signed by: SebastianStork
SSH key fingerprint: SHA256:iEM011ogNMG1q8+U500adGu/9rpPuZ2KnFtbdLeqTiI

View file

@ -42,11 +42,11 @@ in
default = if cfg.routableAddress != null then 47141 else null; default = if cfg.routableAddress != null then 47141 else null;
}; };
pubPath = lib.mkOption { publicKeyPath = lib.mkOption {
type = lib.types.path; type = lib.types.path;
default = "${self}/hosts/${hostname}/keys/nebula.pub"; default = "${self}/hosts/${hostname}/keys/nebula.pub";
}; };
certPath = lib.mkOption { certificatePath = lib.mkOption {
type = lib.types.path; type = lib.types.path;
default = "${self}/hosts/${hostname}/keys/nebula.crt"; default = "${self}/hosts/${hostname}/keys/nebula.crt";
}; };
@ -69,7 +69,7 @@ in
enable = true; enable = true;
ca = ./ca.crt; ca = ./ca.crt;
cert = cfg.certPath; cert = cfg.certificatePath;
key = config.sops.secrets."nebula/host-key".path; key = config.sops.secrets."nebula/host-key".path;
listen.port = cfg.routablePort; listen.port = cfg.routablePort;