github-actions[bot] 37b154aab5 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 7e9e1b63 -> c6a049a3
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 7e9e1b6351...c6a049a3d3

- [7e3d8fc6](7e3d8fc66b) byacc: 20210520 -> 20210619
- [afb035ed](afb035ed9f) gallery-dl: 1.17.5 -> 1.18.0
- [24b29d11](24b29d114e) avocode: 4.14.1 -> 4.14.3
- [f283f941](f283f9411b) liquibase: 4.3.5 -> 4.4.0
- [5abe2cd1](5abe2cd1ac) analog: 6.0.16 -> 6.0.17
- [71417e7e](71417e7ebd) bacon: 1.1.5 -> 1.1.6
- [afb2e12e](afb2e12ee9) amidst: use jre instead of jre8
- [f64fb8bd](f64fb8bd31) jmol: 14.31.39 -> 14.31.41
- [312fbe84](312fbe8458) cmark: 0.29.0 -> 0.30.0; dynamically link; cleanup
- [548cc15a](548cc15a89) dnsproxy: 0.37.6 -> 0.37.7
- [0ff9967d](0ff9967dac) python3Packages.pysbd: 0.3.3 -> 0.3.4
- [06d92ba1](06d92ba195) esphome: fix permissions on src file before modifying them
- [63b199c1](63b199c193) grpc: 1.38.0 -> 1.38.1
- [7817a547](7817a547a3) sudo-font: 0.53.1 -> 0.55.1
- [08a9ffd3](08a9ffd38c) python38Packages.grpcio-tools: 1.38.0 -> 1.38.1
- [c50bd802](c50bd80253) nodejs-16_x: 16.3.0 -> 16.4.0
- [0752eabb](0752eabbf4) go-mockery: 2.8.0 -> 2.9.0
- [7955ea96](7955ea9628) vimPlugins.formatter-nvim: init at 2021-06-23
- [d96ccfaf](d96ccfaf16) ipfs: 0.8.0 → 0.9.0
- [bbe12794](bbe1279459) exploitdb: 2021-06-19 -> 2021-06-23
- [4b0ca5e0](4b0ca5e0cd) fuse-overlayfs: 1.5.0 -> 1.6
- [fac2f636](fac2f63654) Apply suggestions from code review
- [0a1695b0](0a1695b024) ceph: use packageOverrides
- [0bce48d5](0bce48d5b7) pythonPackages.scipy_1_3: drop
- [b128806d](b128806d99) pythonPackages.dns: move alias to python-aliases.nix
- [cf4e702b](cf4e702b2c) cq-editor: use default version of spyder
- [388ec140](388ec14073) pythonPackages.spyder_3: drop
- [1dc70c3b](1dc70c3b9e) pythonPackages.spyder-kernels_0_5: drop
- [c4a91c75](c4a91c75c5) python3Packages.netdisco: 2.8.3 -> 2.9.0
- [3b6dfbae](3b6dfbae81) maintainer: update babariviere
- [471e6391](471e63915f) libzip: 1.7.3 -> 1.8.0
- [494ba50f](494ba50fc3) updog: init at 1.4
- [a6bb32ae](a6bb32aecc) graalvm-ce: fix NativePRNG errors on darwin
- [271c827b](271c827b0e) clamav: 0.103.2 -> 0.103.3
- [039b2dec](039b2deca5) orthorobot: remove phases overwrite
- [a5519a21](a5519a216a) cargo-release: 0.14.0 -> 0.15.0
- [b7ecc3db](b7ecc3db11) eprover: 2.5 -> 2.6
- [6d7451d7](6d7451d728) esphome: 1.19.2 -> 1.19.3
- [3a2215d1](3a2215d1d5) du-dust: 0.5.4 -> 0.6.0
- [951939e4](951939e48d) srt: 1.4.2 -> 1.4.3
- [46113713](46113713d4) rich: make `ipywidgets` dependency optional ([NixOS/nixpkgs⁠#121243](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121243))
- [88b53156](88b531566b) python3Packages.extractcode-libarchive: fix eval
- [2beb0f7b](2beb0f7b06) rust-analyzer: 2021-06-07 -> 2021-06-21 and fix the extension
- [f60eff54](f60eff5485) consul: 1.9.7 -> 1.10.0
- [ca8b252d](ca8b252d19) taskspooler: init at 1.0
- [a05435ac](a05435acd1) maintainers: add bertof
- [dea84b1e](dea84b1e10) srt: Switch website to Github.
- [07dcccba](07dcccbaed) python3Packages.coqpit: 0.0.9 -> 0.0.10
- [aecc760c](aecc760c05) joystickwake: init at 0.2.4
- [cf496ea5](cf496ea5cf) vimPlugins.vim-alias: init at 2021-06-23
- [c265f50e](c265f50e2f) knot-dns: verbose output in case some test fails
- [aac0961f](aac0961f4d) python3Packages.pyaehw4a1: init at 0.3.9
- [5b220bf3](5b220bf3f3) home-assistant: update component-packages.nix
- [82f57c58](82f57c5828) home-assistant: test hisense_aehw4a1 component
- [48f16f28](48f16f281f) add tonelib-gfx ([NixOS/nixpkgs⁠#127712](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/127712))
- [4b0789d7](4b0789d7c5) 4ti2: init at 1.6.9
- [6f67d173](6f67d1734a) pythonPackages.python-louvain: init at 0.15 ([NixOS/nixpkgs⁠#127818](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/127818))
- [e234811b](e234811bb0) clojure-lsp: fix compilation on darwin
- [4400e4d0](4400e4d06c) zprint: fix compilation on darwin
- [b19285d9](b19285d9f6) clojure-lsp: update maintainers list
- [6fb9ef94](6fb9ef9409) probe-run: 0.2.3 -> 0.2.4
- [8cdec037](8cdec03785) python3Packages.hlk-sw16: init at 0.0.9
- [2cb5693a](2cb5693ac9) home-assistant: update component-packages.nix
- [18afd8c4](18afd8c4c6) home-assistant: test hlk_sw16 component
- [fb746462](fb7464627f) marwaita: 9.2.2 -> 9.5
- [6443cb70](6443cb7036) python3Packages.somecomfort: init at 0.5.2
- [65d101a0](65d101a0b0) home-assistant: update component-packages.nix
- [253562b6](253562b6bd) home-assistant: test honeywell component
- [feb370eb](feb370ebb1) slack: fix missing libGLESv2.so.2
- [dfcfc915](dfcfc91515) python3Packages.huawei-lte-api: init at 1.4.18
- [29589039](2958903932) home-assistant: update component-packages.nix
- [20560b05](20560b05d8) home-assistant: test huawei_lte component
- [db2ce99e](db2ce99e1c) pythonPackages.python-louvain: reenable tests
- [eb8a694d](eb8a694d92) nixos/sway: Drop rxvt-unicode from the extraPackages default
- [b2ec1ffa](b2ec1ffa00) nodePackages.netlify-cli: update esbuild
- [8df3adc8](8df3adc8f8) nanovna-saver: use packageOverrides
- [f133bec3](f133bec362) pythonPackages.scipy_1_4: drop
- [7936eaa3](7936eaa3a6) disfetch: 1.22 -> 1.24
- [cc2924ee](cc2924ee9a) nanovna-saver: don't double-wrap
- [16bedb4e](16bedb4e99) inter: 3.18 -> 3.19
- [8f309115](8f309115de) docker-slim: 1.36.0 -> 1.36.1
- [18c2cde4](18c2cde4d4) git-quick-stats: 2.2.0 -> 2.3.0
- [ab9c4eae](ab9c4eaecd) jruby: 9.2.18.0 -> 9.2.19.0
- [540c23fc](540c23fc4c) kanboard: 1.2.19 -> 1.2.20
- [fd1d79c9](fd1d79c9ea) helmfile: 0.139.8 -> 0.139.9
- [bf95eaf6](bf95eaf623) k9s: 0.24.9 -> 0.24.10
- [fa346247](fa34624701) gh-ost: 1.1.1 -> 1.1.2
- [fe968242](fe9682427b) go-rice: 1.0.0 -> 1.0.2
- [9a76039f](9a76039f9e) python3Packages.huisbaasje-client: init at 0.1.0
- [4b804786](4b80478604) home-assistant: update component-packages.nix
- [6a50f94d](6a50f94d23) home-assistant: test huisbaasje component
- [c2e3b1de](c2e3b1de89) libxmp: 4.4.1 -> 4.5.0
- [66b43bb1](66b43bb134) bctoolbox: 4.5.15 -> 4.5.20
- [3cac86ca](3cac86ca3c) home-assistant: test ign_sismologia component
- [1cc751cc](1cc751cca1) dpdk: 21.02 -> 21.05
- [32c2dd30](32c2dd304d) docs: nixos release notes to CommonMark (2105)
- [f038416b](f038416b9e) python3Packages.pyisy: init at 3.0.0
- [ccc705e0](ccc705e0f9) home-assistant: update component-packages.nix
- [2b38c5ea](2b38c5eac2) home-assistant: test isy994 component
- [f91d7910](f91d7910ea) doc: cleanup documentation relating to release notes
- [4a1d17d5](4a1d17d5c3) python3Packages.pygti: init at 0.9.2
- [628799e3](628799e3f8) home-assistant: update component-packages.nix
- [4cd0927e](4cd0927ea6) home-assistant: test hvv_departures component
- [c800214a](c800214a2d) xterm: support cross-compilation
- [75fc1371](75fc137151) python3Packages.nextcloudmonitor: init at 1.2.0
- [79423a31](79423a31e5) home-assistant: update component-packages.nix
- [7fbbbf20](7fbbbf20b6) polkadot: 0.9.5 -> 0.9.6
- [74e4ba98](74e4ba987e) bunnyfetch: unstable-2021-05-24 -> unstable-2021-06-19
- [3c8372b2](3c8372b2ef) electron_13: 13.1.2 -> 13.1.3
- [c1f93472](c1f9347282) electron_12: 12.0.11 -> 12.0.12
- [942f13fb](942f13fb87) electron_11: 11.4.8 -> 11.4.9
- [4516f069](4516f0695d) vimPlugins: update
- [cd58ea33](cd58ea3344) vimPlugins.luasnip: init at 2021-06-23
- [c0591a4b](c0591a4b6a) vscode-extensions.hashicorp.terraform: 2.12.1 -> 2.13.0
- [08931215](08931215f4) terraform-providers.grafana: 1.10.0 -> 1.12.0
- [3beb2a83](3beb2a8353) cargo-embed: 0.10.1 -> 0.11.0
- [68dd7bca](68dd7bca1b) 4ti2: add myself to maintainers
- [cf7e051e](cf7e051ede) fsearch: init at unstable-2021-06-23
- [0b3e58b4](0b3e58b4a5) linode-cli: 5.0.1 -> 5.4.3
- [00f70edc](00f70edcc6) argocd: 2.0.1 -> 2.0.4
- [3f1061c7](3f1061c72b) python3Packages.milc: 1.3.0 -> 1.4.2
- [0ed028bd](0ed028bdd1) esphome: 1.19.3 -> 1.19.4
- [5a9fdf5b](5a9fdf5bcd) ijq: 0.3.4 -> 0.3.5
- [419e4299](419e4299a6) linux_xanmod: 5.12.12 -> 5.12.13
- [3e73f3c7](3e73f3c7ff) xorg.xf86inputlibinput: 1.0.1 -> 1.1.0
- [bd223b0d](bd223b0dbd) pythonPackages.webtest-aiohttp: init at 2.0.0
- [08ab3757](08ab375715) pythonPackages.webargs: init at 8.0.0
- [6ef4742d](6ef4742d99) python3Packages.marshmallow: add maintainer
- [955df801](955df801e8) ocamlPackages.ocamlgraph: 1.8.8 -> 2.0.0 ([NixOS/nixpkgs⁠#126703](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/126703))
- [4e9f5e82](4e9f5e8239) python3Packages.hstspreload: 2021.5.31 -> 2021.6.21
- [19496166](1949616615) libpqxx_6: init at 6.4.5
- [3394da87](3394da8775) hydra-unstable: fix build, pin libpqxx to 6.4.5
- [4ac6180a](4ac6180a19) materia-kde-theme: init at 20210612 ([NixOS/nixpkgs⁠#127873](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/127873))
- [dfaee500](dfaee500d7) python3Packages.pytest-order: 0.10.0 -> 1.0.0
- [05b9351c](05b9351c29) python3Packages.konnected: init at 1.2.0
- [fade1183](fade118376) home-assistant: update component-packages.nix
- [e66619bd](e66619bdf5) home-assistant: test konnected component
- [d22a5612](d22a561225) git-branchless: init at 0.3.2
- [98db2f6b](98db2f6bfa) pythonPackages.pyvis: init at 2021-04-29 ([NixOS/nixpkgs⁠#127811](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/127811))
- [e829ab8d](e829ab8d65) chromiumBeta: 92.0.4515.59 -> 92.0.4515.70
- [a4fccd0a](a4fccd0a64) python3Packages.hid: init at 1.0.4
- [6e76ab58](6e76ab5841) python3Packages.python-izone: init at 1.1.5
- [dbd6b227](dbd6b2279c) home-assistant: update component-packages.nix
- [6ba0fd8d](6ba0fd8d5b) home-assistant: test izone component
- [eaf590d9](eaf590d941) vorta: enable tests and install the desktop file
- [bda5f659](bda5f65931) matcha-gtk-theme: 2021-06-02 -> 2021-06-24
2021-06-29 23:17:26 +02:00
2021-06-29 23:06:23 +02:00
2021-05-21 00:15:09 +02:00
2019-10-23 13:25:43 +02:00
2021-06-29 23:06:23 +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%