nixos: Start atticd after nss-lookup for Postgres peer auth

This commit is contained in:
Zhaofeng Li 2023-03-05 11:05:11 -07:00
parent 22626efd35
commit 0ee4f4901b

View file

@ -150,7 +150,8 @@ in
systemd.services.atticd = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ] ++ lib.optional hasLocalPostgresDB "postgresql.service";
after = [ "network.target" ]
++ lib.optionals hasLocalPostgresDB [ "postgresql.service" "nss-lookup.target" ];
serviceConfig = {
ExecStart = "${cfg.package}/bin/atticd -f ${checkedConfigFile}";
EnvironmentFile = cfg.credentialsFile;