summaryrefslogtreecommitdiff
path: root/modules/nixos/emacs.nix
blob: 5e263c930266e63ffed0fbc09e59e79bac345c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.emacs;
in {
  config = mkIf cfg.enable {
    nixfiles.modules.x11.enable = true;

    hm.services.emacs = {
      enable = true;
      client.enable = true;
      socketActivation.enable = true;
    };
  };
}