I have configured my nixos system with a flake and I can update my system by running
nix flake update. I also have some locally developed python packages in the same flake. For those, I have used poetry2nix to get the python packages to nix through the poetry lock files. The problem I want to solve is to somehow update the poetry lock file when I update the rest of the system. Is there a way to add a hook to `nix flake update´ or something? Or do you think what I want is a bad idea altogether or do you have any other idea how to implement something similar?