Replace default emacsclient.desktop with HM

The default emacsclient.desktop seems to be broken when launched with
anyrun (and possibly syntactically incorrect altogether?). Fortunately,
home-manager has an option to generate this file and theirs works.

Change-Id: Ic4248d97cdbe86f38e4ccb40417a4781f01008df
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/440
Tested-by: Skyler Grey <minion@clicks.codes>
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Reviewed-by: Skyler Grey <minion@clicks.codes>
diff --git a/modules/home/editor/emacs/default.nix b/modules/home/editor/emacs/default.nix
index 4151db1..7ddd07d 100644
--- a/modules/home/editor/emacs/default.nix
+++ b/modules/home/editor/emacs/default.nix
@@ -14,6 +14,10 @@
     services.emacs = {
       enable = true;
       defaultEditor = config.chimera.editor.emacs.defaultEditor;
+      client = {
+        enable = true;
+        arguments = [ "--create-frame" "--alternate-editor=${config.programs.emacs.package}/bin/emacs" ];
+      };
     };
   };
 }