From b0e8933004d53f01a2f014c051dcd499fc42a026 Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 6 Feb 2023 18:09:11 +0900 Subject: feat(nixos/cobalt): soju: use config values for acme path --- nixos/cobalt/services/soju.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nixos/cobalt/services/soju.nix b/nixos/cobalt/services/soju.nix index c150879..bab8a5b 100644 --- a/nixos/cobalt/services/soju.nix +++ b/nixos/cobalt/services/soju.nix @@ -1,3 +1,5 @@ +{ config, ... }: + { services.soju = { enable = true; @@ -6,8 +8,8 @@ listen = [ ":6697" ]; - tlsCertificate = "/var/lib/acme/sefidel.com/cert.pem"; - tlsCertificateKey = "/var/lib/acme/sefidel.com/key.pem"; + tlsCertificate = "${config.security.acme.certs."sefidel.com".directory}/cert.pem"; + tlsCertificateKey = "${config.security.acme.certs."sefidel.com".directory}/key.pem"; }; networking.firewall.allowedTCPPorts = [ 6697 ]; -- cgit 1.4.1