Your one-stop-cake-shop for everything Freshly Baked has to offer

fix(pm/menu): change postgres dependency to target

The service comes up before postgres is actually ready to receive
connections, which means there is a race condition on startup. We
previously added some retry logic to workaround this - but this should
be a better solution...

+2 -1
+2 -1
packetmix/systems/teal/menu.nix
··· 17 17 18 18 systemd.services.menu = { 19 19 wantedBy = [ "default.target" ]; 20 - wants = [ "postgresql.service" ]; 20 + wants = [ "postgresql.target" ]; 21 + after = [ "postgresql.target" ]; 21 22 script = '' 22 23 ${project.packages.menu.result.${system}}/bin/menu 23 24 '';