From 2b14648587f71d0d8042193294c39a067fc0106b Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 22 Oct 2022 07:00:56 -0700 Subject: [PATCH] servo: persist the maildir this way i don't lose my mail on every reboot... wow i can't believe it took me this long to make the connection. --- machines/servo/services/postfix.nix | 4 ++++ modules/impermanence.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/machines/servo/services/postfix.nix b/machines/servo/services/postfix.nix index 3b31dcc1b..4a4e4a6f3 100644 --- a/machines/servo/services/postfix.nix +++ b/machines/servo/services/postfix.nix @@ -20,6 +20,10 @@ in # TODO: mode? could be more granular { user = "opendkim"; group = "opendkim"; directory = "/var/lib/opendkim"; } { user = "root"; group = "root"; directory = "/var/lib/postfix"; } + { user = "root"; group = "root"; directory = "/var/spool/mail"; } + # *probably* don't need these dirs: + # "/var/lib/dhparams" # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/security/dhparams.nix + # "/var/lib/dovecot" ]; services.postfix.enable = true; services.postfix.hostname = "mx.uninsane.org"; diff --git a/modules/impermanence.nix b/modules/impermanence.nix index f4d562c21..b1b6c63d9 100644 --- a/modules/impermanence.nix +++ b/modules/impermanence.nix @@ -68,8 +68,6 @@ in # "/var/lib/upower" # historic charge data. unnecessary, but maybe used somewhere? # # servo additions: - # "/var/lib/dhparams" # https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/security/dhparams.nix - # "/var/lib/dovecot" ] ++ cfg.service-dirs); files = [ "/etc/machine-id"