I was looking to manage my server through Cockpit project.
I would like to also be able to use cockpit-machines to manage VMs on my server. However, that module is not present in nixpkgs.
I know how to deploy simple-ish packages, however, JS based projects seem a bit complicated.
https://github.com/cockpit-project/cockpit-machines
Could you suggest a starting point with this project? Any similar modules I can refer to?
I wanted to say thanks for the detailed post.
I was able to make some progress on packaging the project. A few issues I faced:
-d
flag, but that would include all devDependencies into the final build, and I could not find a way to remove that for production build.Despite the failure of the outcome (I don’t think I am willing to invest more time into this build right now) I learned a ton about building nix derivations, packaging software, and various troubleshooting tips.
I was able to hack on a project really successfully, using nix repl. However, to test that on my system, I had to fork nixpkgs, include that in my flakes, and rebuild the system. I would like to find a more isolated, easier way to test my packages, without affecting my main system.