github-actions[bot] 9ae470f920 flake.lock: Updating 'doom-emacs (hlissner/doom-emacs)' - 2d718cc8 -> d62c82dd
### Changes for doom-emacs

On branch: develop
Commits: 2d718cc86f...d62c82ddbe

- [a5f39d75](a5f39d75a5) Fix 'readme' button doom/help-packages
- [c7029731](c7029731d1) Updated projectile-project-search-path to use the correct arguments when
- [334e054a](334e054ab0) Read username from git config github.user
- [56e9d273](56e9d273e1) Simplify doom/window-enlargen & doom/window-maximize-buffer
- [faefc999](faefc9991c) Fix :unless in (doom!)
- [b3ba98cf](b3ba98cfd6) Auto-lock closed issues after 180d of inactivity
- [1ed6f8c1](1ed6f8c1f5) Disable CI tests
- [20c62463](20c6246313) Remap `describe-symbol` to `counsel-describe-symbol` . ([hlissner/doom-emacs⁠#4593](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4593))
- [8566cfac](8566cfac7b) Bump evil-collection, vterm
- [75549f57](75549f5743) Fix doom build skipping some packages
- [1650e257](1650e25794) doom doctor: warn about insertOf rules in gitconfig
- [49150c40](49150c4045) Autolock threads more frequently
- [b91f1607](b91f1607d8) Fix [hlissner/doom-emacs⁠#4532](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4532): wrong-number-of-args errors on emacs HEAD
- [f5a9dc11](f5a9dc11ee) Update deprecated notices on back (+forward) ports
- [07f134b1](07f134b10e) doom purge: delete old ELN directories
- [05aa13ea](05aa13ea19) doom purge: make repo regrafting opt-out
- [026d9619](026d961985) doom doctor: fix insteadOf check [hlissner/doom-emacs⁠#2679](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/2679)
- [d3112b5d](d3112b5dfc) Doom Doctor: Fix insteadOf check
- [7fcf2c20](7fcf2c2025) doom {build,purge}: reduce unnecessarily loud output
- [48273faa](48273faa82) lang/php: expand on dependencies in README
- [b78206d0](b78206d002) Bump :core
- [a6175852](a61758523d) Fix [hlissner/doom-emacs⁠#4602](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4602): void-variable straight--build-default-steps
- [3a7be7bb](3a7be7bb4f) Fix [hlissner/doom-emacs⁠#4602](http://r.duckduckgo.com/l/?uddg=https://github.com/hlissner/doom-emacs/issues/4602), part 2!
- [6c163d77](6c163d77d9) Fix +evil:retab
- [8331f4f8](8331f4f896) Fix interactive spec of doom/retab
- [f978913e](f978913e40) Extract program name from inferior-lisp-program
- [5a98fa27](5a98fa2748) Fixes typo in modules/lang/rust/README.org
- [5dedf008](5dedf00811) Fix find file in private config for emacs bindings
- [15d85a5c](15d85a5c74) Fix nix-mode for nix-shell shell scripts
- [a178b377](a178b377a0) Fix eval commands in nix-shell files
- [c3c001ad](c3c001ad7d) Bump core
2021-02-10 12:06:16 +01:00
2021-01-23 17:15:48 +01:00
2021-01-23 17:15:48 +01:00
2019-10-23 13:25:43 +02:00
2021-01-23 17:50:22 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Build on develop Build Status on develop
Dependency updater Dependency Updater Status

Nix expression to install and configure doom-emacs.

The expression builds a doom-emacs distribution with dependencies pre-installed based on an existing ~/.doom.d directory.

It is not a fully fledged experience as some dependencies are not installed and some may not be fully compatible as the version available in NixOS or emacs-overlay may not be compatible with the doom-emacs requirements.

Getting started

Using home-manager:

{ pkgs, ... }:

let
  doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/vlaci/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;  # Directory containing your config.el init.el
                                # and packages.el files
  };
in {
  home.packages = [ doom-emacs ];
  home.file.".emacs.d/init.el".text = ''
      (load "default.el")
  '';
}

./doom.d should contain the following three files: config.el, init.el and packages.el. If you don't already have an existing doom-emacs configuration, you can use the contents of test/doom.d as a template.

Using flake.nix:

{
  inputs = {
    home-manager.url = "github:rycee/home-manager";
    nix-doom-emacs.url = "github:vlaci/nix-doom-emacs";
  };

  outputs = {
    self,
    nixpkgs,
    home-manager,
    nix-doom-emacs,
    ...
  }: {
    nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        home-manager.nixosModules.home-manager
        {
          home-manager.users.exampleUser = { pkgs, ... }: {
            imports = [ nix-doom-emacs.hmModule ];
            programs.doom-emacs = {
              enable = true;
              doomPrivateDir = ./doom.d;
            };
          };
        }
      ];
    };
  };
}

Under the hood

This expression leverages nix-straight.el under the hood for installing dependencies. The restrictions of that package apply here too.

Usage

instead of running emacs.d/bin/doom, once you have update your config files (packages.el, init.el, config.el), rebuild doom-emacs with nix. If you are using home-manager, simply run home-manager switch

Troubleshooting

On macOS on a fresh install, you might run into the error Too many files open. running ulimit -S -n 2048 will only work for the duration of your shell and will fix the error

Installing emacs packages

In the initial packages.el instructions for how to install packages can be found. However some packages might require a particular software dependency to be installed. Trying to install those would give you an error of the type: Searching for program: No such file or directory, git (Missing git dependency) Here is how you would go installing magit-delta for example (which requires git).

Under the line: doomPrivateDir = ./doom.d; in your configuration, you would add the following:

  emacsPackagesOverlay = self: super: {
     magit-delta = super.magit-delta.overrideAttrs (esuper: {
       buildInputs = esuper.buildInputs ++ [ pkgs.git ];
     });
  };

To make the git dependency available. trying to rebuild doom-emacs with home-manager switch should work correctly now.

Using the daemon

To use the daemon, simply enable the emacs service (with NixOS, home-manager or nix-darwin) and use the doom emacs package. doom-emacs will need to be referenced at the top of your config file.

services.emacs = {
  enable = true;
  package = doom-emacs;  # use programs.emacs.package instead if using home-manager
}

to connect to the daemon you can now run emacsclient -c

Description
doom-emacs packaged for Nix [maintainers=@ckiee,@thiagokokada]
Readme MIT 3.3 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%