From 62689132d39c944ae895a06aeba4bc7bc6435f9e Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 6 Aug 2023 20:29:24 +0100 Subject: [PATCH] fix: wasnt compiling --- applications/acme.nix | 6 +++--- applications/email.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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