I think the most proper thing would be to change the xrdp module to include hooks that you need for it to work successfully. You should be test it locally with nixos-rebuild switch -I nixpkgs=path/to/editted/default.nix. Once it works, submit a PR so that others may share
Unfortunately I can’t find any good documentation on how to build NixOS modules, and I would hate to say, “look at source code” because it’s not a great way to learn. @Infinisil do you know of any resources?
If you mean “options” I think I can figure this out. To test this out, do I need to clone the repo and make my modifications there, then use -I /my/local/repo for testing the build? Or can I just have a single file (without the full clone)?
I personally would clone the repo, that way you can iterate with doing nixos-rebuild. If you’re doing this on a local machine, it probably won’t be too bad. But if you’re doing this on an azure VM, then it will be pretty bad.