about summary refs log tree commit diff
path: root/nixos/cobalt
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/cobalt')
-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 ];