diff --git a/applications/acme.nix b/applications/acme.nix index f746182..3018c5a 100644 --- a/applications/acme.nix +++ b/applications/acme.nix @@ -1,11 +1,11 @@ -{ pkgs, lib, ... }: +{ config, pkgs, lib, ... }: with lib; let - cfg = config.services.skynet_acme; + cfg = config.skynet_acme; in { imports = []; - options.services.skynet_acme = { + options.skynet_acme = { domains = lib.mkOption { default = [ ]; type = lib.types.listOf lib.types.str; diff --git a/applications/email.nix b/applications/email.nix index 3f87dce..265fc45 100644 --- a/applications/email.nix +++ b/applications/email.nix @@ -98,7 +98,7 @@ age.secrets.ldap_pw.file = ../secrets/ldap/pw.age; skynet_acme.domains = [ - "mail.${cfg.domain.domain}" + "${cfg.sub}.${cfg.domain}" ]; # set up dns record for it