Skip to content

Commit

Permalink
nixos: Depend on network-online.target for Postgres
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Stephens <adam@valkor.net>
  • Loading branch information
zhaofengli and adamcstephens committed Oct 14, 2024
1 parent ead2fc5 commit ecb1757
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nixos/atticd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,8 @@ in

systemd.services.atticd = {
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ] ++ lib.optionals hasLocalPostgresDB [
"postgresql.service"
"nss-lookup.target"
];
after = [ "network-online.target" ] ++ lib.optionals hasLocalPostgresDB [ "postgresql.service" ];
requires = lib.optionals hasLocalPostgresDB [ "postgresql.service" ];

serviceConfig = {
ExecStart = "${cfg.package}/bin/atticd -f ${checkedConfigFile} --mode ${cfg.mode}";
Expand Down

0 comments on commit ecb1757

Please sign in to comment.