about summary refs log tree commit diff
path: root/modules/nixos/emacs.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2023-11-04 16:52:03 +0300
committerAzat Bahawi <azat@bahawi.net>2023-11-04 16:52:03 +0300
commit5da01d688fcfd4d1956197f7b7f9372e88687d05 (patch)
tree662647084b947301db091928c58f83ad74dbd232 /modules/nixos/emacs.nix
parent2023-10-30 (diff)
2023-11-04
Diffstat (limited to '')
-rw-r--r--modules/nixos/emacs.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/nixos/emacs.nix b/modules/nixos/emacs.nix
index 5e263c9..8163c45 100644
--- a/modules/nixos/emacs.nix
+++ b/modules/nixos/emacs.nix
@@ -7,7 +7,20 @@ with lib; let
   cfg = config.nixfiles.modules.emacs;
 in {
   config = mkIf cfg.enable {
-    nixfiles.modules.x11.enable = true;
+    nixfiles.modules = {
+      common.xdg.defaultApplications.emacsclient = [
+        "application/atom+xml"
+        "application/json"
+        "application/rss+xml"
+        "application/schema+json"
+        "application/xhtml+xml"
+        "application/xml"
+        "text/csv"
+        "text/plain"
+      ];
+
+      x11.enable = true;
+    };
 
     hm.services.emacs = {
       enable = true;

Consider giving Nix/NixOS a try! <3