github-actions[bot] c852431c25 flake.lock: Updating 'emacs-overlay (nix-community/emacs-overlay)' - 7419dbeb -> 1b6e5b25 (#347)
### Changes for emacs-overlay

On branch: master
Commits: 7419dbeb12...1b6e5b25af

- [0e3679f4](0e3679f4cf) Updated repos/elpa
- [1b9f5259](1b9f52597f) Updated repos/melpa
- [4d6714a9](4d6714a912) Updated repos/melpa
- [57e74388](57e7438829) Add tree-sitter-typescript grammar
- [303b370c](303b370c0c) Updated repos/elpa
- [6f4aa4e8](6f4aa4e866) Updated repos/emacs
- [85a88777](85a88777a9) Updated repos/melpa
- [e88e8c7f](e88e8c7f0c) Updated repos/nongnu
- [5ead1de8](5ead1de840) TODO: write commit message
- [f2710ca9](f2710ca9fa) TODO: write commit message
- [fd0da6cc](fd0da6cc6c) TODO: write commit message
- [d4684817](d468481716) TODO: write commit message
- [7f6e28bd](7f6e28bdd8) TODO: write commit message
- [c4eaac82](c4eaac8256) remove newline, remove clojure
- [b816a3e7](b816a3e73b) Enable tree-sitter by default when applicable
- [e9276629](e92766297a) Alias redundant attributes since in 22.11, nativeComp = true
- [2b59221e](2b59221ede) Enable WebP support for emacsPgtk
- [0743ae0e](0743ae0eb8) Add Darwin notes for tree-sitter
- [7f75e987](7f75e98740) Updated repos/emacs
- [873ca1b7](873ca1b703) Updated repos/melpa
- [d165f262](d165f262eb) Don't mention aliased *nativeComp attributes
- [64b233cc](64b233cc9c) add tree sitter languages to rpath ([nix-community/emacs-overlay⁠#273](http://r.duckduckgo.com/l/?uddg=https://github.com/nix-community/emacs-overlay/issues/273))
- [c3c3fca2](c3c3fca2d8) Updated repos/emacs
- [d3905234](d39052346c) Updated repos/melpa
- [50d7ddad](50d7ddad7e) Updated repos/elpa
- [fd64ab7f](fd64ab7f71) Updated repos/emacs
- [ae94e8c0](ae94e8c0b0) Updated repos/melpa
- [336402eb](336402eba8) Remove unnecessary substituteInPlace
- [c9fb6136](c9fb613635) Don't wipe patches
- [543a3b39](543a3b394f) Revert "Don't wipe patches"
- [2ce014a4](2ce014a48b) Revert "Remove unnecessary substituteInPlace"
- [ae96a429](ae96a42959) Updated repos/elpa
- [a5d8c362](a5d8c362c5) Updated repos/melpa
- [d4443a55](d4443a55b8) Updated repos/nongnu
- [ed5e6fc5](ed5e6fc55e) Updated repos/emacs
- [b0500fca](b0500fcaf5) Updated repos/melpa
- [7b8fd092](7b8fd092ec) Updated repos/emacs
- [0e96e55b](0e96e55b37) Updated repos/melpa
- [1e4763dd](1e4763dd90) Revert "add tree sitter languages to rpath ([nix-community/emacs-overlay⁠#273](http://r.duckduckgo.com/l/?uddg=https://github.com/nix-community/emacs-overlay/issues/273))"
- [add580f7](add580f7d2) chore(Hydra): Changed stable: 22.05 -> 22.11
- [881c7123](881c7123cc) Updated repos/elpa
- [a3a53c9b](a3a53c9b51) Updated repos/melpa
- [241117af](241117af1c) Updated repos/emacs
- [d12878da](d12878da7e) Updated repos/melpa
- [dd60ef06](dd60ef0698) Updated repos/nongnu
- [bca9f55d](bca9f55d6c) Updated repos/emacs
- [612fc9ab](612fc9ab31) Updated repos/melpa
- [4aa6dfff](4aa6dfff1e) Remove redundant hydra jobs
- [647e33aa](647e33aacd) Updated repos/emacs
- [cfa0166b](cfa0166bf3) Updated repos/melpa
- [2f7fff8e](2f7fff8ee6) Updated repos/nongnu
- [a5342a40](a5342a4084) Updated repos/elpa
- [dcebfe77](dcebfe77d4) Updated repos/emacs
- [49e3c66d](49e3c66d21) Updated repos/melpa
- [b57c104d](b57c104d0b) Revert "Revert "add tree sitter languages to rpath ([nix-community/emacs-overlay⁠#273](http://r.duckduckgo.com/l/?uddg=https://github.com/nix-community/emacs-overlay/issues/273))""
- [a5be945a](a5be945aa0) Updated repos/elpa
- [241bcc1a](241bcc1a48) Updated repos/emacs
- [c8aaf8c9](c8aaf8c9ce) Updated repos/melpa
- [f45b1882](f45b188205) Updated repos/nongnu
- [e2355f56](e2355f5689) Updated repos/emacs
- [467fee47](467fee4733) Updated repos/melpa
- [52db2512](52db25120d) Updated repos/emacs
- [e9c4d10b](e9c4d10bbb) Updated repos/melpa
- [c063e231](c063e23166) Updated repos/emacs
- [fb984310](fb9843108f) Updated repos/melpa
- [45cc4b01](45cc4b01c5) Updated repos/nongnu
- [97b7d6b7](97b7d6b717) Updated repos/emacs
- [269cf763](269cf7633d) Updated repos/melpa
- [3306f7ef](3306f7eff4) Updated repos/elpa
- [2b62f775](2b62f775f9) Updated repos/emacs
- [1b6e5b25](1b6e5b25af) Updated repos/melpa

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-09 01:32:53 +00:00
2022-10-25 21:32:25 +01:00
2022-11-05 12:15:22 -03:00
2022-09-03 21:45:31 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Dependency updater Dependency Updater Status
Matrix Chat Matrix Chat

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/nix-community/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 ];
}

./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:nix-community/home-manager";
    nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
  };

  outputs = {
    self,
    nixpkgs,
    lib,
    home-manager,
    nix-doom-emacs,
    ...
  }: {
    nixosConfigurations.exampleHost = lib.nixosSystem {
      system = "x86_64-linux";
      modules = [
        home-manager.nixosModules.home-manager
        ({
          home-manager.users.exampleUser = lib.mkMerge [
            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; # Not needed if you're using the Home-Manager module instead
  };
}

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%