blob: 1cfa2b07452c1cd13b45ff705ef2c57e27339f3f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{ config, pkgs, lib, ... }:
with lib;
{
options.programs.emacs.useGit = mkOption {
description = "Use emacs from git";
type = types.bool;
default = false;
};
config = {
nixpkgs.overlays = if config.programs.emacs.useGit then [] else [
(import (builtins.fetchTarball https://github.com/nix-community/emacs-overlay/archive/master.tar.gz))
];
environment.systemPackages = with pkgs; [
(if config.programs.emacs.useGit then emacsGit else emacs)
ripgrep
coreutils
fd
clang
];
};
}
|