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.
This commit is contained in:
2022-10-22 07:00:56 -07:00
parent 0753aa59e9
commit 2b14648587
2 changed files with 4 additions and 2 deletions

View File

@@ -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";

View File

@@ -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"