github-actions[bot] b6dbfa396e flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 3155a9e9 -> 82abb663
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 3155a9e966...82abb66345

- [2d05b211](2d05b21117) python37Packages.immutables: 0.14 -> 0.15
- [58110d04](58110d046f) plex: 1.21.3.4014-58bd20c02 -> 1.21.3.4021-5a0a3e4b2
- [1684fb79](1684fb7995) jicofo: run hooks in installPhase
- [5a3e315c](5a3e315c29) jitsi-videobridge: run hooks in installPhase
- [a4735f84](a4735f84dd) jitsi-meet: run hooks in installPhase
- [475d9b30](475d9b3087) jicofo: 1.0-612 -> 1.0-690
- [6de0275f](6de0275f1a) jitsi-meet: 1.0.4289 -> 1.0.4628
- [fdeaed45](fdeaed459b) jitsi-videobridge: 2.1-273-g072dd44b -> 2.1-416-g2f43d1b4
- [14e3301a](14e3301a90) vieb: 3.1.0 -> 3.4.0
- [b0350cbf](b0350cbf36) vivaldi: 3.5.2115.87-1 -> 3.6.2165.36-1
- [920aefdd](920aefdde6) python3Packages.guppy3: init at 3.1.0
- [3a095992](3a095992b8) home-assistant: update component-packages
- [29f0fd08](29f0fd0879) pythonPackages.ovito: drop
- [4ba0b201](4ba0b201a5) i2pd: enable on all unix platforms, enable parallel build
- [a2c3335c](a2c3335cd3) cfitsio: Make configureFlags a list
- [f61b15b0](f61b15b00b) python37Packages.google-cloud-bigquery: 2.7.0 -> 2.8.0
- [cba2f940](cba2f940f3) libvirt: python2 -> python3
- [98026997](980269971e) python37Packages.asyncwhois: 0.2.3 -> 0.2.4
- [65cd6010](65cd60100a) bombadillo: add man page
- [52756df5](52756df546) nodejs: remove util-linux from build inputs
- [75ca5bcd](75ca5bcd5e) vscode-extensions.wholroyd.jinja: init at 0.0.8
- [2d79e4e0](2d79e4e0a1) vscode-extensions.tomoki1207.pdf: init at 1.1.0
- [7eaa45b2](7eaa45b2b0) proxychains: 4.2.0 -> 4.4.0
- [a11c0d06](a11c0d0680) python3Packages.immutables: enable tests
- [d72819ef](d72819ef80) pythonPackages.transitions: 0.8.6 -> 0.8.7
- [d38297f7](d38297f734) python3Packages.pymsteams: init at 0.1.14
- [d8b5bc93](d8b5bc93fe) home-assistant: update component-packages
- [b0b85513](b0b855139d) python3.pkgs.osmpythontools: 0.2.9 -> 0.3.0
- [b7e06796](b7e067969d) erlang: update jdk to lts
- [8c8d4f33](8c8d4f3398) podman: install systemd files
- [37f1ed7c](37f1ed7ca4) nixos/podman: install systemd files
- [94109e5b](94109e5b37) fzf: 0.25.0 -> 0.25.1
- [5d974058](5d9740588d) python3Packages.fritzconnection: 1.4.0 -> 1.4.1
- [c4c5b8d4](c4c5b8d4e2) buildah: remove unconfigured runtime warnings
- [b3fce659](b3fce6596d) packer: set ldflags, install zsh completion
- [54772e76](54772e7670) go_1_14: 1.14.14 -> 1.14.15
- [860a644e](860a644e0d) go_1_15: 1.15.7 -> 1.15.8
- [6304d91d](6304d91d91) python37Packages.josepy: 1.6.0 -> 1.7.0
- [369f2092](369f20924a) cri-o: prefer to build wrapper locally
- [81ccf172](81ccf17291) buildah: prefer to build wrapper locally
- [a3d0f781](a3d0f7818a) crun: Only build with criu support on criu supported platforms
- [00a6e876](00a6e876e9) ansi2html: add alias to top level
- [a8378cc3](a8378cc310) emacs.pkgs.elpa-packages: 2021-02-13
- [f8c77c3d](f8c77c3dfc) emacs.pkgs.org-packages: 2021-02-13
- [bdfc5f67](bdfc5f6749) emacs.pkgs.melpa-packages: 2021-02-13
- [715292c1](715292c1e5) python3Packages.asyncwhois: enable tests
- [ee7a97c7](ee7a97c759) python3Packages.pyzerproc: 0.4.6 -> 0.4.8
- [bbb853d8](bbb853d884) cargo-udeps: 0.1.17 -> 0.1.18
- [b7f4d3d9](b7f4d3d949) python3Packages.humanize: cleanup
- [b6ad8aec](b6ad8aec4e) clojure-lsp: 2021.02.10-21.13.12 -> 2021.02.13-18.04.19
- [498baf8f](498baf8fca) convco: 0.3.2 -> 0.3.3
- [04ef0098](04ef00987a) nixos/switcheroo-control: add to modules-list.nix ([NixOS/nixpkgs⁠#113052](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/113052))
- [89147ab5](89147ab523) python3Packages.fontparts: 0.9.7 -> 0.9.9 ([NixOS/nixpkgs⁠#112992](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/112992))
- [84947643](849476431f) diff-pdf: 0.4.1 -> 0.5
- [a8559f10](a8559f10e5) coursier: 2.0.9 -> 2.0.11
- [1c9d1783](1c9d178371) linux-rt: use latest version
- [bc704b5f](bc704b5f63) linux-rt_5_4: 5.4.84-rt47 -> 5.4.93-rt51
- [fc3b385a](fc3b385a4f) .github/workflows/rebase.yml: rebase for multiple branches
- [cbc5852d](cbc5852d20) maturin: 0.9.0 -> 0.9.1 ([NixOS/nixpkgs⁠#113033](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/113033))
- [142760c9](142760c9fd) yosys: 0.9+3830 -> 0.9+3905
- [8ace1f29](8ace1f29cb) python38Packages.tubeup: 0.0.21 -> 0.0.23
- [4cd2bd60](4cd2bd60d9) python38Packages.tubeup: fix license
- [632dad39](632dad39db) cascadia-code: 2009.22 -> 2102.03
- [af34144a](af34144a84) lavalauncher: init at 2.0.0
- [6083863f](6083863f4a) topgrade: 6.4.0 -> 6.5.0
- [80f52b66](80f52b6676) osu-lazer: 2021.205.1 -> 2021.212.0
- [c7151335](c71513353c) pdfcpu: 0.3.8 -> 0.3.9
- [a7d4a00d](a7d4a00d72) pgcenter: 0.6.6 -> 0.7.0
- [b21a92e9](b21a92e921) pgcenter: add buildFlagsArray
- [924e6907](924e69072e) criu: Fix build on aarch64
- [cc942dcb](cc942dcbc7) bitlbee-facebook: Add agent version bump patch ([NixOS/nixpkgs⁠#112760](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/112760))
- [863e300e](863e300e39) tfsec: 0.38.1 -> 0.38.2
- [6689c39f](6689c39fb6) tfsec: 0.38.2 -> 0.38.3
- [96b11077](96b1107706) cointop: 1.5.5 -> 1.6.0
- [a01fa027](a01fa0276d) sbcl: add 2.1.1
- [84e7b8e5](84e7b8e560) archivy: 1.0.0 -> 1.0.1
- [84786ebe](84786ebecd) cudnn_cudatoolkit_11: remove libcudnn_cnn_infer.so exception
- [8dad19ae](8dad19aebe) cudnn_cudatookit_11: add $ORIGIN/ to library RPATHs
- [055b7e2a](055b7e2a5d) nixos/nextcloud: fix regex to not return 404 on ACME challenges
- [59eb6d3e](59eb6d3ee3) nixosTests.*: update to use virtualisation.fileSystems
- [3e0a8185](3e0a8185c3) calibre: 5.10.1 -> 5.11.0
- [f0ebc5b1](f0ebc5b140) freeipmi: 1.6.6 -> 1.6.7
- [fb3ef1f7](fb3ef1f7cd) py65: init at 1.1.0
- [6fafbb4f](6fafbb4f27) gnomeExtensions.arc-menu: 47 -> 5
- [c14c378b](c14c378b60) mailutils: 3.10 -> 1.12
- [f4a9e6c2](f4a9e6c28a) gnunet: 0.13.2 -> 0.14.0
- [e1fc0f5e](e1fc0f5e38) gnomeExtensions.arc-menu: rename to gnomeExtensions.arcmenu
- [90361764](90361764fe) ocamlPackages.re: use Dune 2
- [9dfa33f6](9dfa33f610) coqPackages.dpdgraph: init at 0.6.9 for Coq 8.13
- [93380235](9338023577) Fix typo in the GitLab smtp auth options docs
- [b84835eb](b84835ebde) python3Packages.capstone: aarch64 platform name
- [aa36e5d5](aa36e5d524) racket: 7.9 -> 8.0 (closes [NixOS/nixpkgs⁠#102704](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/102704))
- [661c4318](661c43188e) racket-minimal: fix build on darwin
- [5d9735c2](5d9735c262) wine{Unstable,Staging}: 6.1 -> 6.2
- [32a03ff8](32a03ff8d5) libxc: 5.1.0 -> 5.1.2
- [95c31950](95c31950db) ferm: 2.5.1 -> 2.6
- [6104ef87](6104ef8749) parachute: init at 0.9.1
- [45e68ec5](45e68ec5ed) rippled-validator-keys-tool: 20180927-d7774bc → 0.3.2
- [cd1452da](cd1452da8d) piston-cli: change buildPythonPackage to buildPythonApplication
- [c3f0be60](c3f0be60d2) i3: 4.19 -> 4.19.1
- [6eb945d6](6eb945d608) gnome3.gnome-terminal: 3.38.2 -> 3.38.3
- [c27538ee](c27538ee3f) evolution-data-server: 3.38.3 -> 3.38.4
- [9a858b63](9a858b6305) cargo-whatfeatures: init at 0.9.6
- [4d7b43a3](4d7b43a328) calibre: cosmetical modifications
- [4c521db1](4c521db1f9) ccls: use llvmPackages_latest
- [910e396d](910e396d82) git-hub: 1.1.0 -> 2.1.0
- [93981c0e](93981c0e46) py65: eliminate unneeded meta.platforms
- [368c1d9d](368c1d9d7d) lollypop: add lovesegfault to maintainers
- [5a059852](5a05985243) lollypop: 1.4.5 -> 1.4.16
- [1970700e](1970700ed6) hackage-packages.nix: automatic Haskell package set update
- [5eabb050](5eabb050be) R: fix dylib install_name ([NixOS/nixpkgs⁠#113002](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/113002))
- [70cf0705](70cf0705f6) gnome-session: Fix 2 minute shutdown delay
- [396fbd03](396fbd0302) python3Packages.moto: 1.3.14 -> 1.3.16
- [4830e129](4830e129e6) fmt: fix license
- [6ffbd1ea](6ffbd1ea07) opencl-headers: update license
- [3f0e6e1d](3f0e6e1daa) zfs: 2.0.2 -> 2.0.3
- [797b60f0](797b60f0d7) ripgrep: link PCRE2 dynamically
- [53abd00b](53abd00b1f) perlPackages.TextWrapI18N: don't propagate glibc
- [e74ae54d](e74ae54da5) qemu: guard desktop file removal
- [f89652a2](f89652a23e) nixos/nextcloud: redirect /.well-known/*dav to https url
- [089ff21e](089ff21e21) solanum: enable parallel building
- [f1adea1a](f1adea1a94) nixos/mastodon: add option trustedProxy
- [424e7b0f](424e7b0f5d) nixos/mastodon: use unix socket to default
- [4255954d](4255954d97) nixos/mastodon: optimize permissions
- [e3a7270e](e3a7270e3d) nixos/mastodon: fix mastodon-init-db script
- [7dfb3fb5](7dfb3fb5f6) solanum: use autoreconfHook269
- [2bf291a4](2bf291a436) yaml2json: unstable-2017-05-03 -> 1.3
- [bb419e05](bb419e051d) buildGoModule: use assert for checking goPackagePath ([NixOS/nixpkgs⁠#113046](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/113046))
- [d9be3c76](d9be3c767c) go_bootstrap: remove top-level attribute ([NixOS/nixpkgs⁠#113113](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/113113))
- [368ed8fb](368ed8fb3d) go_1_14, go_1_15, go_2-dev: do not override stdenv if it is not gcc ([NixOS/nixpkgs⁠#112248](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/112248))
- [d4f220e5](d4f220e56e) ophis: init at 2019-04-13
2021-02-25 13:27:30 +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 1.6 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%