diff options
author | sefidel <contact@sefidel.net> | 2023-02-06 18:09:11 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-02-06 18:09:11 +0900 |
commit | b0e8933004d53f01a2f014c051dcd499fc42a026 (patch) | |
tree | 807367899349a2a3489ee6b90c2098f3a137f83e /nixos/cobalt/services/soju.nix | |
parent | 2788edf8f6ddc0a5ccd141db51321cd21abb5adf (diff) | |
download | nixrc-b0e8933004d53f01a2f014c051dcd499fc42a026.tar.gz nixrc-b0e8933004d53f01a2f014c051dcd499fc42a026.zip |
feat(nixos/cobalt): soju: use config values for acme path
Diffstat (limited to 'nixos/cobalt/services/soju.nix')
-rw-r--r-- | nixos/cobalt/services/soju.nix | 6 |
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 ]; |