Merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
s-prechtl 2025-08-30 18:04:30 +02:00
commit fe8f52a04c
3 changed files with 56 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ config, pkgs, ... }: {
imports = [
(builtins.fetchTarball {
# Pick a release version you are interested in and set its hash, e.g.
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/nixos-25.05/nixos-mailserver-nixos-25.05.tar.gz";
# To get the sha256 of the nixos-mailserver tarball, we can use the nix-prefetch-url command:
# release="nixos-25.05"; nix-prefetch-url "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${release}/nixos-mailserver-${release}.tar.gz" --unpack
sha256 = "1qn5fg0h62r82q7xw54ib9wcpflakix2db2mahbicx540562la1y";
})
];
age.secrets.mail-admin = {
file = ../../secrets/mail-admin.age;
owner = "virtualMail";
group = "virtualMail";
};
mailserver = {
enable = true;
stateVersion = 3;
fqdn = "mail.sprechtl.me";
domains = [ "sprechtl.me" ];
# A list of all login accounts. To create the password hashes, use
# nix-shell -p mkpasswd --run 'mkpasswd -sm bcrypt'
loginAccounts = {
"admin@sprechtl.me" = {
hashedPasswordFile = config.age.secrets.mail-admin.path;
aliases = ["postmaster@sprechtl.me"];
};
};
# Use Let's Encrypt certificates. Note that this needs to set up a stripped
# down nginx and opens port 80.
certificateScheme = "acme-nginx";
};
security.acme.acceptTerms = true;
security.acme.defaults.email = "stefan@tague.at";
}

16
secrets/mail-admin.age Normal file
View file

@ -0,0 +1,16 @@
age-encryption.org/v1
-> ssh-ed25519 7PLkJg 5N3ktQBX28rsDQ7YRNIlDeoXljtxyMl8t37gVsRTf0U
bbVGfoR882Eg0iiXGSc51rdFLzE7/MAW7HWtY1SDmsk
-> ssh-rsa LgF3EQ
NRH0J1kTQPje0Y7FXcPeeaFIR+3bWXnpYByUeEXcp3mK7DmqeniAuWgDaZPHgEDY
2P5rD82iF5Zt1UO7cB/ttTd1mlMuqhnBKxu838kXbOMKiRo5wUG/kIBvWisfCG3k
0Dpn844gUoRgLdJzZUdAxMSEt03I8SJ5v/oB93nMidMJaBbPU3qzTGDsI+Ihr75V
us4dj5qqX7Pg274Cb1xhBPCWSMLI4sULwZNuMe8PPFRpYyBhNxr3hiFJw447eknv
rC897kWbf0RuFfDHCJ/XxtCg+5HJlnOF7NeOkWGhLrEw5tlFHpTZyCJkkCUGNx6H
3zI92rZQE9mW2byvWQIVKg+hdvpbqnZ9T58nxDnwR3pcuJDDDd5aeTHStPNH2J0O
+nqFqr/rksKNe4gtbNA0fiMVm4kA8UUCSloDqMjP596ixR9ZNb369eMADFJYDA6n
gN2kxtZtUhCBi7GNXwdH7ElxnKLytNfExAWg6p5nUL5Aho+reX6IO5dRY3nzqIqc
--- 3TCR6AMS33iAH8StjxZA5N2Wf7F/5tQSBX2zuaLVGXk
žmćÍúYďľ
ĆÂRSJâ« >=+Á§Ż- „Ó¤Ňěř4üKžĺ„Öű­¨ü€+Ë

View file

@ -14,4 +14,5 @@ in {
"mautrix-signal.age".publicKeys = [hitsugibune key];
"mautrix-whatsapp.age".publicKeys = [hitsugibune key];
"coturn.age".publicKeys = [hitsugibune key];
"mail-admin.age".publicKeys = [hitsugibune key];
}