aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-14 15:08:59 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-14 15:08:59 -0700
commitca3ccf55a31c92c3eba5130fef7ec17f51a7805a (patch)
treebc020ffacb6e982ad17da765ddfbc4ee63dc3809
parentcb32d41ed013a38a3078e47a73074fa921a16454 (diff)
downloadnix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar.gz
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar.bz2
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar.lz
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar.xz
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.tar.zst
nix-ca3ccf55a31c92c3eba5130fef7ec17f51a7805a.zip
Add postfix @arrakis
Diffstat (limited to '')
-rw-r--r--hosts/arrakis/services.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/hosts/arrakis/services.nix b/hosts/arrakis/services.nix
index 2b4bf1d..6eb514e 100644
--- a/hosts/arrakis/services.nix
+++ b/hosts/arrakis/services.nix
@@ -7,6 +7,11 @@
security.acme = {
acceptTerms = true;
+ certs."arrakis.bitgnome.net".postRun = ''
+ ${pkgs.acl}/bin/setfacl -m u:postfix:--x /var/lib/acme/arrakis.bitgnome.net
+ ${pkgs.acl}/bin/setfacl -m u:postfix:r-- /var/lib/acme/arrakis.bitgnome.net/{fullchain,key}.pem
+ ${pkgs.systemd}/bin/systemctl reload postfix.service
+ '';
defaults.email = "nipsy@bitgnome.net";
};
@@ -113,6 +118,14 @@
};
};
+ postfix = {
+ enable = true;
+ relayHost = "mail.bitgnome.net";
+ relayPort = 587;
+ sslCert = "/var/lib/acme/arrakis.bitgnome.net/fullchain.pem";
+ sslKey = "/var/lib/acme/arrakis.bitgnome.net/key.pem";
+ };
+
printing.enable = true;
sabnzbd = {