Hi all,
A while back I switched to NixOs as my daily driver at home and at work and I really like it so far. However because of the work at home situation I missed the use of NoMachine as that is my preferred remote desktop solution. Last week I had some time to dive in extending the nomachine-client implementation to also add the server side. It took a bit of effort but I now have it working on my laptop and work PC.
Since I’m fairly new to nix I would like to ask if I can get some feedback about what I did to see if it can be improved upon. I extended the program entry to install the server packages and patch the files but since there are a lot of system dependencies it will only work with a service implementation. The program implementation you can find here and the service implementation you can find here.
There are at least some things I know of that should probably be added, like opening the ports in the firewall. Also it should be tested on more systems as the package is fairly complex with a lot of hardcoded paths, so there is quite a chance I missed some stuff.
I hope to hear if there are things that could be done better, that are possible wrong or something else. If things are unclear or seem overly complex please ask as I had to do some hacky stuff to get it working.
Thanks!