Update NixOS 25.11 to 26.05
This commit is contained in:
parent
b45132c495
commit
d619a245db
7 changed files with 46 additions and 29 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ simple-nixos-mailserver, ... }:
|
||||
{ simple-nixos-mailserver, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
simple-nixos-mailserver.nixosModule {
|
||||
|
|
@ -11,9 +11,9 @@
|
|||
enableImapSsl = true;
|
||||
enableSubmission = false;
|
||||
enableSubmissionSsl = true;
|
||||
lmtpSaveToDetailMailbox = "no";
|
||||
lmtpSaveToDetailMailbox = false;
|
||||
domains = [ "grzb.de" "vs.grzb.de" "wg.grzb.de" "nekover.se" ];
|
||||
loginAccounts = {
|
||||
accounts = {
|
||||
"fiona@grzb.de" = {
|
||||
hashedPasswordFile = "/run/secrets/mail-fiona-grzb-de";
|
||||
aliases = [ "@grzb.de" ];
|
||||
|
|
@ -68,7 +68,8 @@
|
|||
aliases = [ "nyareply@nekover.se" ];
|
||||
};
|
||||
};
|
||||
certificateScheme = "acme-nginx";
|
||||
# Reference the existing ACME configuration created by nginx
|
||||
x509.useACMEHost = config.mailserver.fqdn;
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
@ -80,6 +81,18 @@
|
|||
};
|
||||
};
|
||||
|
||||
# https://letsencrypt.org/repository/#let-s-encrypt-subscriber-agreement
|
||||
security.acme.acceptTerms = true;
|
||||
|
||||
# Allow incoming HTTP connections
|
||||
networking.firewall.allowedTCPPorts = [ 80 ];
|
||||
|
||||
# Enable ACME HTTP-01 challenge with nginx
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
virtualHosts.${config.mailserver.fqdn}.enableACME = true;
|
||||
};
|
||||
|
||||
sops.secrets."mail-fiona-grzb-de" = {
|
||||
mode = "0440";
|
||||
owner = "root";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue