parent
633f5b4525
commit
f2811f2e04
2 changed files with 24 additions and 10 deletions
|
@ -9,7 +9,8 @@ with lib; let
|
|||
in {
|
||||
imports = [];
|
||||
|
||||
options.skynet_acme = {
|
||||
options = {
|
||||
skynet_acme = {
|
||||
domains = lib.mkOption {
|
||||
default = [];
|
||||
type = lib.types.listOf lib.types.str;
|
||||
|
@ -17,8 +18,15 @@ in {
|
|||
A list of domains to use for this server.
|
||||
'';
|
||||
};
|
||||
domains_mail = lib.mkOption {
|
||||
default = [];
|
||||
type = lib.types.listOf lib.types.str;
|
||||
description = ''
|
||||
A list of domains to use for the mailserver.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# group that will own the certificates
|
||||
users.groups.acme = {};
|
||||
|
@ -41,6 +49,10 @@ in {
|
|||
domain = "skynet.ie";
|
||||
extraDomainNames = cfg.domains;
|
||||
};
|
||||
"mail" = {
|
||||
domain = "mail.skynet.ie";
|
||||
extraDomainNames = cfg.domains_mail;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -208,8 +208,10 @@ in {
|
|||
|
||||
age.secrets.ldap_pw.file = ../secrets/ldap/pw.age;
|
||||
|
||||
skynet_acme.domains = [
|
||||
"${cfg.sub}.${cfg.domain}"
|
||||
skynet_acme.domains_mail = [
|
||||
"imap.skynet.ie"
|
||||
"pop3.skynet.ie"
|
||||
"smtp.skynet.ie"
|
||||
];
|
||||
|
||||
# set up dns record for it
|
||||
|
|
Loading…
Reference in a new issue