about summary refs log tree commit diff
path: root/modules/nixos/emacs.nix
blob: 7d2112b349e9a59662cd42225ec51cbfad0ed963 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.emacs;
in {
  config = mkIf cfg.enable {
    nixfiles.modules.common.xdg.defaultApplications.emacs = [
      "application/atom+xml"
      "application/json"
      "application/rss+xml"
      "application/schema+json"
      "application/xhtml+xml"
      "application/xml"
      "text/csv"
      "text/plain"
    ];
  };
}

Consider giving Nix/NixOS a try! <3