about summary refs log tree commit diff
path: root/nixos/cobalt/services
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-02-06 18:09:11 +0900
committersefidel <contact@sefidel.net>2023-02-06 18:09:11 +0900
commitb0e8933004d53f01a2f014c051dcd499fc42a026 (patch)
tree807367899349a2a3489ee6b90c2098f3a137f83e /nixos/cobalt/services
parent2788edf8f6ddc0a5ccd141db51321cd21abb5adf (diff)
downloadnixrc-b0e8933004d53f01a2f014c051dcd499fc42a026.tar.gz
nixrc-b0e8933004d53f01a2f014c051dcd499fc42a026.zip
feat(nixos/cobalt): soju: use config values for acme path
Diffstat (limited to 'nixos/cobalt/services')
-rw-r--r--nixos/cobalt/services/soju.nix6
1 files 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 ];