Initial commit
It begins...
This commit is contained in:
commit
28ccec9704
24 changed files with 2721 additions and 0 deletions
23
system/modules/emacs.nix
Normal file
23
system/modules/emacs.nix
Normal file
|
|
@ -0,0 +1,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
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue