sp-modules: x-systemd.before=... for all mountpoints

This commit is contained in:
Alexander Tomokhov
2023-12-22 18:07:14 +04:00
parent 5f8cc727e0
commit 19f30daf80
4 changed files with 23 additions and 3 deletions

View File

@@ -9,12 +9,20 @@ lib.mkIf sp.modules.simple-nixos-mailserver.enable
"/var/vmail" = {
device =
"/volumes/${sp.modules.simple-nixos-mailserver.location}/vmail";
options = [ "bind" ];
options = [
"bind"
"x-systemd.required-by=postfix.service"
"x-systemd.before=postfix.service"
];
};
"/var/sieve" = {
device =
"/volumes/${sp.modules.simple-nixos-mailserver.location}/sieve";
options = [ "bind" ];
options = [
"bind"
"x-systemd.required-by=dovecot2.service"
"x-systemd.before=dovecot2.service"
];
};
};