github-actions[bot] 284232a420 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 21264a93 -> 4c87cb87
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 21264a9367...4c87cb87a2

- [2a3ff386](2a3ff38680) r2mod_cli: use bashInteractive as interpreter
- [2d25c6fb](2d25c6fbf2) python3-openvino: init at 2021.2
- [0b897f7c](0b897f7cd5) python3Packages.discordpy: 1.7.0 -> 1.7.1
- [77a2fadc](77a2fadc4b) kooha: init at 1.1.1
- [e4149e6e](e4149e6e0b) rink: specify license
- [33ca41c6](33ca41c63e) aws-c-common: 0.5.2 -> 0.5.4 ([NixOS/nixpkgs⁠#119187](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119187))
- [d8c6dda7](d8c6dda74b) chez-matchable: typo fix in the description value
- [7dd22ac8](7dd22ac8bd) home-assistant: pin pyruckus==0.12 and enable ruckus_unleashed tests
- [140e4144](140e41442f) python3Packages.pyproj: 2.6.0 -> 3.0.1
- [75eb8e50](75eb8e50df) python3Pakcages.basemap: mark broken for python >= 3.9
- [fcacfa03](fcacfa03df) python3Packages.cartopy: Use updated proj, fix tests and mark unbroken
- [320bbf0b](320bbf0be4) r2mod_cli: 1.0.6 -> 1.0.7
- [a1bc838a](a1bc838a5e) blender: install with python3Packages.requests, fixes [NixOS/nixpkgs⁠#97250](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/97250) ([NixOS/nixpkgs⁠#118987](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118987))
- [06bad855](06bad85574) distrho: 2020-07-14 -> 2021-03-15 ([NixOS/nixpkgs⁠#118928](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118928))
- [a2cfa9a5](a2cfa9a515) foliate: init at 2.6.3 ([NixOS/nixpkgs⁠#119001](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119001))
- [38b27aa6](38b27aa6e9) ceph: 15.2.8 -> 15.2.10 and python dependency fix ([NixOS/nixpkgs⁠#118724](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118724))
- [1ccae60c](1ccae60c2c) nixos/system76: add system76-firmware to environment.systemPackages
- [e3ca228f](e3ca228f54) lxd: 4.12 -> 4.13
- [a897f249](a897f249ba) recursive: 1.077 -> 1.078
- [28a32994](28a3299425) navi: fix build on darwin
- [a6f303f5](a6f303f5fd) ncspot: 0.5.0 -> 0.6.0
- [f01a04ab](f01a04abd4) ocamlPackages.jsonrpc: 1.4.1 → 1.5.0
- [328a2e36](328a2e365f) metasploit: 6.0.38 -> 6.0.39
- [fd980c58](fd980c588a) dasel: 1.13.6 -> 1.14.0
- [305c7e60](305c7e609c) python3Packages.pywemo: init at 0.6.4
- [4a9cec8e](4a9cec8eb2) home-assistant: update component-packages
- [d857f72d](d857f72d63) home-assistant: enable wemo tests
- [248a6da7](248a6da7f6) gitAndTools.stgit: 0.23 -> 1.0
- [a1d89630](a1d8963040) python3Packages.karton-asciimagic: init at 1.0.0
- [8469abb6](8469abb6f5) panotools: 2.9.19 -> 2.9.20
- [13c28f4f](13c28f4f95) esniper: drop broken and unmaintained package
- [7f35119b](7f35119b94) go_2-dev: 2020-12-08 -> 2021-03-22
- [a1c0d6dd](a1c0d6ddbc) cri-tools: 1.20.0 -> 1.21.0
- [df7cebe0](df7cebe08b) clamav: 0.103.1 -> 0.103.2
- [c6f6e589](c6f6e589fe) tmux: remove unused makeWrapper input
- [0e31f60c](0e31f60cad) openimagedenoise: 1.2.2 -> 1.3.0
- [29e9863e](29e9863e2d) pythonPackages.isbnlib: 3.10.6 -> 3.10.7
- [c87714a0](c87714a040) coqPackages.stdpp: 1.4.0 → 1.5.0
- [5a8838aa](5a8838aaee) enpass: 6.5.1 -> 6.6.1
- [e81d95eb](e81d95ebcd) gitui: 0.13.0 -> 0.14.0
- [81ddd516](81ddd516d3) kubepug: init at 1.1.3
- [56490749](56490749ad) xscreensaver: 5.44 -> 6.00
- [8811817e](8811817e3e) python3Packages.jsonpath-ng: fix build
- [57fe2b7d](57fe2b7dc5) home-assistant-cli: 0.9.1 -> 0.9.3
- [01a8cc22](01a8cc220f) pythonPackages.isbnlib: clarify license
- [c1ebd280](c1ebd28029) element-web: 1.7.24 -> 1.7.25
- [9fed67fb](9fed67fb1b) element-desktop: 1.7.24 -> 1.7.25
- [23e39936](23e399366c) python3Packages.cvxpy: 1.1.11 -> 1.1.12
- [5104d563](5104d563a4) pythonPackages.hydrus: 431 -> 434
- [8a6fac4b](8a6fac4b02) qdirstat: specify license
- [17673589](176735899e) pdfarranger: 1.7.0 -> 1.7.1
- [6f9b4f5a](6f9b4f5a27) proj_5: drop
- [e44319a3](e44319a3e6) python3Packages.cvxpy: add openmp multithreading
- [b126d543](b126d5436a) docker: move makeWrapper to nativeBuildInputs
- [a9d4ba38](a9d4ba38b4) geonkick: 2.6.1 -> 2.8.0
- [3e2d34b8](3e2d34b8a8) qlcplus: fix build
- [d549dc31](d549dc310c) yara: add maintainer
- [a7b54d90](a7b54d9016) erlang: add updateScript and update versions ([NixOS/nixpkgs⁠#118831](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118831))
- [e05657ce](e05657cef5) python3Packages.botocore: 1.20.46 -> 1.20.49
- [f86f230d](f86f230d63) python3Packages.boto3: 1.17.46 -> 1.17.49
- [5d29cfbc](5d29cfbc70) awscli: 1.19.46 -> 1.19.49
- [ecf709f7](ecf709f768) python3Packages.sagemaker: 2.33.0 -> 2.34.0
- [8ef1889b](8ef1889b75) oh-my-zsh: 2021-04-07 → 2021-04-11
- [62b44d8d](62b44d8dfa) rust-analyzer: 2021-04-05 -> 2021-04-12
- [aa32db84](aa32db8440) vsc-leetcode-cli: init at 2.8.0
- [c05f2fea](c05f2fea0b) node-packages.nix: generate
- [d5e1e66b](d5e1e66b9c) teams: 1.4.00.4855 -> 1.4.00.7556
- [79c36096](79c3609603) celestia: 1.6.1 -> 1.6.2.2 ([NixOS/nixpkgs⁠#117999](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/117999))
- [ceffd2b3](ceffd2b3d6) pythonPackages.hcloud: 1.11.0 -> 1.12.0
- [1c5fc741](1c5fc741b7) distrho-ports: fix rpath, simplify dependencies
- [7d396a42](7d396a4219) nixos/sane: added lp and avahi group ([NixOS/nixpkgs⁠#117952](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/117952))
- [86c72072](86c72072fd) e16: init at 1.0.23
- [728c4f81](728c4f81b8) nixos/e16: add e16 module
- [1187b797](1187b797c6) kustomize-sops: 2.5.1 -> 2.5.2 ([NixOS/nixpkgs⁠#119031](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119031))
- [25e53061](25e53061fa) minikube: 1.18.1 -> 1.19.0 ([NixOS/nixpkgs⁠#119050](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119050))
- [4b56b816](4b56b81627) chezmoi: 2.0.8 -> 2.0.9 ([NixOS/nixpkgs⁠#118968](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118968))
- [2623b3e5](2623b3e50f) sd-local: 1.0.30 -> 1.0.31 ([NixOS/nixpkgs⁠#119158](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119158))
- [7db1853f](7db1853f5c) ocamlPackages.rpclib: 8.0.0 → 8.1.0
- [031da799](031da79988) coq-elpi: 1.9.4 -> 1.9.5
- [8b22df98](8b22df9883) coq-elpi: 1.8.0 -> 1.8.2_8.12
- [7d51a0cd](7d51a0cdb0) coq-elpi: 1.6.1_8.11 -> 1.6.2_8.11
- [5c88d256](5c88d25630) pythonPackages.amiibo-py: init at unstable-2021-01-16
- [89f7a2a5](89f7a2a5aa) unipicker: unstable-2018-07-10 -> 2.0.1
- [f2e13fa1](f2e13fa173) helm-secrets: 3.5.0 -> 3.6.1
- [214e7a88](214e7a888b) python3.pkgs.twilio: remove myself as maintainer
- [a12bb7e8](a12bb7e8f9) gitkraken: 7.5.4 -> 7.5.5
- [40175efa](40175efacf) cypress: 6.6.0 -> 7.0.0 ([NixOS/nixpkgs⁠#118902](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118902))
- [8dbd5537](8dbd553792) mailman-web-unstable: 2019-09-29 -> 2021-04-10 ([NixOS/nixpkgs⁠#119135](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119135))
- [8e1e78a7](8e1e78a735) nixos/babeld: allow AF_INET communication required for netlink socket
- [c22eec42](c22eec42ad) python3Packages.aiohomekit: 0.2.60 -> 0.2.61
- [08caa827](08caa82758) home-assistant: 2021.4.3 -> 2021.4.4
- [940f476e](940f476eb1) exa: 0.10.0 -> 0.10.1
- [fc43a7fa](fc43a7fa4d) probe-run: init at 0.2.1
- [c902fbdd](c902fbddac) pythonPackages.isbnlib: correct license
- [8c60448e](8c60448e26) chromiumDev: Fix two build errors
- [fc586861](fc586861ee) chromiumBeta: 90.0.4430.61 -> 90.0.4430.70
2021-04-28 09:51:46 +02: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-03-12 10:53:18 +01: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%