github-actions[bot] 7212b6b559 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - f6a583ee -> 9b7e9dc6
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: f6a583eeec...9b7e9dc611

- [13a6565c](13a6565c4c) erofs-utils: 1.2 -> 1.2.1
- [603e14c7](603e14c793) nixos/alsa: disable OSSEmulation by default
- [b60b4023](b60b4023d7) rr: Build with gcc9
- [9a8bd5a0](9a8bd5a0fa) zz: 0.1 -> unstable-2021-01-26
- [e5db8458](e5db845846) rauc: 1.5 -> 1.5.1
- [a5f0f5de](a5f0f5dec4) python3Packages.shodan: 1.24.0 -> 1.25.0
- [e0493922](e049392289) python3.pkgs.tokenizers: fix build
- [38e0c514](38e0c51452) waifu2x-converter-cpp: 5.3.3 -> 5.3.4
- [0e56f996](0e56f99681) gensio: 2.2.1 -> 2.2.3
- [103a6022](103a60223e) ser2net: 4.3.0 -> 4.3.2
- [f46bfb97](f46bfb972d) emacs.pkgs.trivialBuild: add missing stdenv argument
- [91efec3c](91efec3c7b) pcb2gcode: init at 2.1.0
- [ca1bc75f](ca1bc75f9f) terragrunt: remove unused dependency and compile smaller
- [13580762](135807629f) terragrunt: 0.27.1 -> 0.27.3
- [d4e94696](d4e946965c) element-web: 1.7.17 -> 1.7.18
- [e61999b3](e61999b3f2) element-desktop: 1.7.17 -> 1.7.18
- [01776be3](01776be3a8) _1password-gui: 0.9.9-3 -> 0.9.10-5
- [2c03cf94](2c03cf9491) pleroma-otp: init at 2.2.2
- [231c5a57](231c5a576a) nixos/pleroma: init
- [60b730fd](60b730fd94) nixos/pleroma: add NixOS VM test.
- [264d47e8](264d47e82d) ec2instanceconnectcli: init at 1.0.2
- [676627ab](676627abaa) rocksdb: 6.14.6 -> 6.15.2
- [feea22fa](feea22fadb) rocksdb: fix output hash
- [abed89b1](abed89b112) rocksdb: 6.15.2 -> 6.15.4
- [bba47f95](bba47f95f1) sortmerna: mark broken on darwin
- [52dd1dae](52dd1dae7a) thunderbird-bin: 78.6.1 -> 78.7.0
- [20259a94](20259a943b) thunderbird: 78.6.1 -> 78.7.0
- [c46b679b](c46b679be0) sudo: 1.9.5p1 → 1.9.5p2
- [65525be8](65525be83b) openjfx15: enable i686-linux build
- [a34b599a](a34b599add) teleport: 4.2.11 -> 5.1.0
- [9d9f863a](9d9f863aa5) starboard: 0.8.0 -> 0.9.0
- [308ee1ca](308ee1ca11) libxc: 4.3.4 -> 5.1.0
- [88afccf4](88afccf4ff) varnish60: 6.0.5 -> 6.0.7
- [bfc2799d](bfc2799d51) varnish62: 6.2.2 -> 6.2.3
- [e9b042a2](e9b042a221) httpdump: init at 20210126-d2e0dea
- [9a6fb4d8](9a6fb4d895) varnish63: 6.3.1 -> 6.3.2
- [5f472181](5f472181f2) nixos/cntlm: add types
- [a5ae1361](a5ae1361ff) capnproto-java: init at 0.1.5
- [1913ea8a](1913ea8a97) qbittorrent: 4.3.1 -> 4.3.3
- [60dea25d](60dea25dae) crypto++: Fix static build and also do multiple outputs
- [e9101d4a](e9101d4a3b) lib/types: Improved functionTo merging
- [c2f3556d](c2f3556dc7) lib/tests: More functionTo tests
- [27de17f4](27de17f45a) factorio-experimental, factorio-demo-experimental, factorio-headless-experimental: 1.1.16 -> 1.1.19
- [a5fa8512](a5fa85129b) factorio, factorio-demo, factorio-headless: 1.0.0 -> 1.1.19
- [6d489a3e](6d489a3eb4) xkcdpass: py2 -> py3, add manpage and run tests
- [89850d10](89850d10e0) ghcjs: fix eval
- [26c4dcf8](26c4dcf8fa) nixos/babeld: add type extraConfig
- [3bbad8b0](3bbad8b041) treewide: remove inherited stdenv.lib
- [02ee14b9](02ee14b9d5) treewide: stdenvNoCC.lib -> lib
- [36c91cea](36c91cea1d) treewide: stdenv.lib -> lib
- [9afe3525](9afe3525f3) rust-analyzer: 2021-01-18 -> 2021-01-25
- [15a64b2f](15a64b2fac) python3Packages.wasabi: 0.8.0 -> 0.8.1
- [7055f4b4](7055f4b42c) masscan: 1.3.0 -> 1.3.1
- [7072a7ef](7072a7efd8) masscan: add changelog to meta and update license
- [20d05254](20d052544f) tor-browser-bundle-bin: 10.0.8 -> 10.0.9
- [b58f10c3](b58f10c3ba) unifi6: update to 6.0.45
- [5e3a6a0f](5e3a6a0f46) meshcommander: init at 0.9.0
- [d7b905b6](d7b905b6b2) loadlibrary: stdenv_32bit.lib -> lib
- [afebe553](afebe553f8) nodePackages: stdenv.lib -> lib
- [c9c0ef0e](c9c0ef0e35) ejabberd: 20.03 -> 20.12
- [996a8eb8](996a8eb88e) python3.pkgs.pyworld: init at 0.2.12
- [5fc4e480](5fc4e480f2) tts: unstable-2020-06-17 -> 0.0.9
- [b98bfb65](b98bfb6536) androidenv: do not copy verbosely
- [ffcf5e0f](ffcf5e0f0f) texlive: use python3 by default
- [a3f4db86](a3f4db8679) nixos/dysnomia nixos/disnix: Drop modules
- [63bc8502](63bc85029a) abcmidi: 2021.01.21 -> 2021.01.25
- [8e8ef2ac](8e8ef2acf0) jetbrains-mono: 2.221 -> 2.225
- [75d987a4](75d987a4f4) tfsec: 0.36.10 -> 0.37.1
- [82454e9d](82454e9df8) treewide: remove implicit use of stdenv.lib
- [cdd111b5](cdd111b525) gotop: 4.0.1 -> 4.1.0
- [62912262](62912262f4) nodejs-10_x: 10.23.1 -> 10.23.2
- [42cc76b8](42cc76b8d0) nodejs-15_x: 15.6.0 -> 15.7.0
- [83522ef4](83522ef4d4) clojure-lsp: 2021.01.20-01.39.32 -> 2021.01.26-22.35.27
- [ee71a722](ee71a72267) Sylk: 2.9.4 -> 3.0.0
- [6a2e7a63](6a2e7a6318) jetbrains: updates
- [057a240b](057a240b0b) linuxPackages.oci-seccomp-bpf-hook: 1.2.0 -> 1.2.1
- [a2ac3c2f](a2ac3c2f58) fluxcd: 0.6.3 -> 0.7.3
- [e5845dea](e5845deabb) vscode-extensions.elmtooling.elm-ls-vscode: init at 2.0.1
- [1a9e4e10](1a9e4e109b) starboard-octant-plugin: remove unused dependency and compile smaller
- [d8aa0fda](d8aa0fda58) starboard-octant-plugin: 0.8.0 -> 0.9.0
- [2fcf614e](2fcf614ea3) ejabberd: remove myself as maintainer
- [c85ef638](c85ef63819) vsh: 0.7.2 -> 0.8.0
- [2426da9b](2426da9b0e) qrcode: build on darwin
- [1e80c853](1e80c853f4) matrix-synapse: 1.25.0 -> 1.26.0
- [cbad557f](cbad557fe2) saw-tools: update license ([NixOS/nixpkgs⁠#110920](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/110920))
- [c841fa49](c841fa4908) code-server: 3.6.0 -> 3.8.0
- [0b5fd3b7](0b5fd3b784) qemu-guest: remove security.rngd setting
- [1d594486](1d594486bd) cinnamon.xapps: 1.8.9 -> 2.0.6
- [ec644e05](ec644e05cb) flutter: remove non-stable versions
- [75326dbe](75326dbecd) dart: remove all versions except the one used by flutterPackages.stable
- [c5623e1b](c5623e1bb1) dart: 2.10.0 -> 2.10.4
- [d6db914f](d6db914fc4) flutter: 1.22.0 -> 1.22.4
- [e19491e2](e19491e24c) dart: 2.10.4 -> 2.10.5
- [5f72a823](5f72a823de) flutter: 1.22.4 -> 1.22.5
- [d87aba56](d87aba56a8) dart/flutter: add thiagokokada as maintainer
- [577645d0](577645d09f) dart: add some assertions
- [24a4bbf2](24a4bbf2ea) python-language-server: do not propagate flake8
- [df3a19b9](df3a19b9d7) vkBasalt: init at 0.3.2.4
- [51bcc540](51bcc5408f) callaudiod: init at 0.0.4
- [d44ccc87](d44ccc878f) feedbackd-unstable: init at 2020-01-25
- [24552931](24552931d8) calls: 0.1.5 -> 0.2.0
- [4d2f81c4](4d2f81c456) spyder: add explicit dependency on flake8
- [f9c1057e](f9c1057e79) nvidia.x11: 460.32.03 -> 460.39
- [f2ce0f54](f2ce0f543d) nixos/flashpolicyd: add types
- [f8236681](f8236681be) nixos/felix: add types
- [f697a31b](f697a31b93) nixos/elasticsearch-curator: add type
- [6df6d457](6df6d457cc) tracy: 0.7.4 -> 0.7.5
- [7c90be59](7c90be596b) libvirt: 6.8.0 -> 7.0.0
- [a3272d6d](a3272d6df4) pythonPackages.libvirt: 6.8.0 -> 7.0.0
- [92b4eedd](92b4eedd83) perlPackages.SysVirt: 6.3.0 -> 7.0.0
- [c699a6a8](c699a6a855) libvirt: removed unknown options
- [3344d206](3344d20655) obs-gstreamer: init at 0.2.1
- [ad5cda7d](ad5cda7d20) cargo-valgrind: init at 1.3.0
- [32c34aee](32c34aee20) python3Packages.hatasmota: 0.2.6 -> 0.2.7
- [b3231b0e](b3231b0e35) lnd: 0.11.0-beta -> 0.12.0-beta
- [0b3e15a1](0b3e15a16f) python3Packages.archinfo: 9.0.5327 -> 9.0.5610
- [88f877e0](88f877e07d) kernelPatches: drop export_kernel_fpu_functions
- [e441e7a4](e441e7a469) python3Packages.botocore: 1.19.57 -> 1.19.61
- [129a0e96](129a0e965c) python3Packages.boto3: 1.16.57 -> 1.16.61
- [269c2aac](269c2aace6) awscli: 1.18.217 -> 1.18.221
- [25af703d](25af703d2d) oh-my-zsh: 2021-01-20 → 2021-01-27
- [eccaaef7](eccaaef736) linux: 4.19.170 -> 4.19.171
- [36ce7b55](36ce7b5576) linux: 5.10.10 -> 5.10.11
- [84075b6e](84075b6eb0) linux: 5.4.92 -> 5.4.93
- [e5deb489](e5deb4892b) shellhub-agent: 0.4.2 -> 0.5.1
- [fb664e15](fb664e15f5) python3Packages.pyfritzhome: 0.4.2 -> 0.6.0
- [8180bbb8](8180bbb883) gallery-dl: 1.16.3 -> 1.16.4
- [0cdef78c](0cdef78c4e) tailscale: 1.2.10 -> 1.4.0
- [42ad658d](42ad658dc0) linux/hardened/patches/4.19: 4.19.170-hardened1 -> 4.19.171-hardened1
- [db0f608d](db0f608d85) linux/hardened/patches/5.10: 5.10.10-hardened1 -> 5.10.11-hardened1
- [ac05d50f](ac05d50ffe) linux/hardened/patches/5.4: 5.4.92-hardened1 -> 5.4.93-hardened1
- [9ad2ef5c](9ad2ef5c42) python37Packages.braintree: 4.5.0 -> 4.6.0
- [320232ba](320232bacb) datasette: 0.53 -> 0.54
- [80db3351](80db33510b) python37Packages.azure-mgmt-network: 17.0.0 -> 17.1.0
- [1e4ddfc5](1e4ddfc5de) python37Packages.cloudscraper: 1.2.52 -> 1.2.56
- [ae4219f8](ae4219f857) python37Packages.bids-validator: 1.5.8 -> 1.5.10
- [3bfd05dc](3bfd05dc5d) pythonPackages.internetarchive: 1.9.6 -> 1.9.9
- [eb9503a6](eb9503a60e) linkchecker: unstable-2020-08-15 -> 10.0.0
- [30e7377b](30e7377bd8) python37Packages.av: 8.0.2 -> 8.0.3
- [da874229](da87422997) brakeman: 4.8.0 -> 5.0.0
- [5d8b3228](5d8b32289b) heroku: 7.45.0 -> 7.47.11
- [718916d3](718916d395) python37Packages.google-cloud-iam: 2.0.0 -> 2.1.0
- [00138204](00138204d0) nomachine-client: 6.12.3 -> 7.0.211
- [b2ed5d77](b2ed5d775b) trackballs: clarify license
- [d4f09d95](d4f09d9537) arp-scan: enable on darwin
- [c174292e](c174292ec7) coqPackages.corn: 8.8.1 → 8.12.0
- [ef8f775d](ef8f775d2a) pdfpc: Update license to match upstream
- [4c9a74aa](4c9a74aa45) ocamlPackages.curly: add missing meta set
- [750510ee](750510ee7c) pythonPackages.pytest-order: init at 0.9.4 ([NixOS/nixpkgs⁠#110141](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/110141))
- [f32d7e4e](f32d7e4e03) nixos: add services.rsyncd.socketActivated option
2021-01-29 13:33:55 +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%