NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.62k stars 13.77k forks source link

private-gpt module package setting not used in preStart #328527

Open KenMacD opened 2 months ago

KenMacD commented 2 months ago

Describe the bug

If attempting to override the package using the services.private-gpt.package option the original package is still used in the service preStart:

cp ${pkgs.python3Packages.private-gpt}/${pkgs.python3.sitePackages}/private_gpt/settings.yaml ${cfg.stateDir}/settings/settings.yaml

It looks like the fix for this will need a passthru.python that could be accessed to get the correct directory (unless there's a better way).


Add a :+1: reaction to issues you find important.

eclairevoyant commented 2 months ago

Should be able to get to it via .pythonModule already edit: thought you meant the original python module