diff --git a/modules/patroni/default.nix b/modules/patroni/default.nix index 9ed1e10..7fd332f 100644 --- a/modules/patroni/default.nix +++ b/modules/patroni/default.nix @@ -271,6 +271,8 @@ in systemd-notify EXTEND_TIMEOUT_USEC=300000000 ''; + unitConfig.RequiresMountsFor = [ cfg.dataDir cfg.postgresqlDataDir ]; + serviceConfig = mkMerge [{ User = cfg.user; Group = cfg.group;