about summary refs log tree commit diff
path: root/modules/nixos/emacs.nix
blob: 82c2f6e4874b9f292e8cef0927a013a8fa42bf39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  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;
    };
  };
}

Consider giving Nix/NixOS a try! <3