nixos/pgmanage: use package option

This commit is contained in:
Jonathan Ringer 2021-12-29 14:59:26 -08:00
parent 12f1b91685
commit 0685074cea
No known key found for this signature in database
GPG Key ID: 5C841D3CFDFEC4E0

View File

@ -187,7 +187,7 @@ in {
serviceConfig = {
User = pgmanage;
Group = pgmanage;
ExecStart = "${pkgs.pgmanage}/sbin/pgmanage -c ${confFile}" +
ExecStart = "${cfg.package}/sbin/pgmanage -c ${confFile}" +
optionalString cfg.localOnly " --local-only=true";
};
};