github-actions[bot] 5766f161c3 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 1a1bd867 -> 5f9b871b
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 1a1bd86756...5f9b871b72

- [6b189c30](6b189c307a) libnbd: 1.12.2 -> 1.14.0
- [bea08cad](bea08cad45) resolve-march-native: init @ unstable-2022-07-29
- [4b709d69](4b709d6920) gum: 0.1.0 -> 0.2.0
- [943e82c4](943e82c4b9) mdcat: 0.27.1 -> 0.28.0
- [932204d3](932204d39f) parsero: init at 0.81
- [1f3dfdd3](1f3dfdd3ef) lollypop: 1.4.31 -> 1.4.34
- [d5e7f6a6](d5e7f6a613) add Promiscuous as valid value for linkConfig
- [61d213c3](61d213c3ff) tabnine: 4.4.40 -> 4.4.98
- [20ab6771](20ab6771fb) libwpe: 1.12.0 -> 1.12.2
- [b020f316](b020f316b6) prometheus-blackbox-exporter: 0.21.1 -> 0.22.0
- [f5c24d18](f5c24d1812) ncmpc: 0.46 -> 0.47
- [c40047e5](c40047e565) syslogng: 3.36.1 -> 3.37.1
- [436cc654](436cc6549f) python310Packages.ffmpeg-progress-yield: 0.2.0 -> 0.3.0
- [00f984ff](00f984fffa) linux_5_19: add missing package alias
- [ef8782f5](ef8782f543) python310Packages.packageurl-python: 0.10.0 -> 0.10.1
- [cca695b3](cca695b336) python310Packages.ibm-cloud-sdk-core: 3.15.3 -> 3.16.0
- [af16336c](af16336c16) nvidia_x11: 515.57 → 515.65.01
- [572516da](572516da1a) python310Packages.itemadapter: 0.6.0 -> 0.7.0
- [94b44dd7](94b44dd77a) nvidia_x11.legacy470: 470.129.06 → 470.141.03
- [70886bad](70886bad2e) python310Packages.parts: 1.5.1 -> 1.5.2
- [86945e19](86945e1968) nvidia_x11.legacy390: 390.151 → 390.154
- [373362e5](373362e5fa) remove whitespace
- [1483fac7](1483fac7cb) python310Packages.stripe: 3.5.0 -> 4.0.1
- [23b63f6e](23b63f6e34) partition-manager: 22.04.0 -> 22.04.3
- [80ebd25f](80ebd25f66) reason: fix build with OCaml < 4.07
- [15a85b29](15a85b2908) cargo-tally: 1.0.8 -> 1.0.9
- [8e4e1caf](8e4e1caf65) python3Packages.django_4: 4.0.6 -> 4.0.7
- [c7560719](c75607194a) step-ca: 0.19.0 -> 0.21.0
- [8abdb123](8abdb12324) tuc: init at 0.11.0
- [c092a502](c092a502df) treewide: remove myself as maintainer from some pkgs
- [2a416901](2a4169019e) python310Packages.Mako: Add missing check dependency
- [a091b42a](a091b42a5c) xdg-desktop-portal: 1.14.5 -> 1.14.6
- [7b7fe298](7b7fe29819) python310Packages.lingua: init at 4.15.0
- [ffdfe119](ffdfe119b1) python3Packages.simplisafe-python: 2022.07.0 -> 2022.07.1
- [8594c60e](8594c60e13) home-assistant: 2022.7.5 -> 2022.7.7
- [9fc7188c](9fc7188c27) python3Packages.aiogithubapi: fix version substitution
- [141ba134](141ba1340d) home-assistant: pin dependencies after latest python-updates
- [22a0a210](22a0a210dd) ghdl: use gnat11 to unbreak build ([NixOS/nixpkgs⁠#184352](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/184352))
- [b5a9dea9](b5a9dea9c8) kmymoney: 5.1.1 → 5.1.3 ([NixOS/nixpkgs⁠#183973](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/183973))
- [947bd824](947bd82418) lurk: init at 0.2.9
- [8c3afe09](8c3afe0978) fritzing: unstable-2021-09-22 -> unstable-2022-07-01
- [952c5269](952c5269b3) poke: fix aarch64-darwin build
- [e4bcf793](e4bcf79371) xdg-user-dirs: 0.17 -> 0.18
- [d51f8eec](d51f8eeca9) iosevka: Allow privateBuildPlan to be a path
- [b588a78e](b588a78e85) iosevka-comfy: use fetchFromGitHub
- [b49b6dae](b49b6daedf) iosevka-comfy: Simplify calling of package
- [8fd867f0](8fd867f047) iosevka-comfy: 0.2.1 > 0.3.1
- [c9186a15](c9186a15a5) plan9port: use built-in ./INSTALL
- [63bea374](63bea374ea) grapejuice: move gtk3 to buildInputs
- [c7124801](c712480139) airgeddon: 11.01 -> 11.02
- [324ff82d](324ff82d27) prometheus-statsd-exporter: 0.22.2 -> 0.22.7 ([NixOS/nixpkgs⁠#184482](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/184482))
- [2e9e84cc](2e9e84cc25) linux-exploit-suggester: init at unstable-2022-04-01
- [2e560663](2e5606634f) obs-gstreamer: 0.3.3 -> 0.3.4
- [a035b1b5](a035b1b5ac) obs-gstreamer: add pedrohlc as maintainer
- [cc26a157](cc26a157ca) obs-studio-wrapper: allow plugins' arguments
- [bd87e0b8](bd87e0b8ab) kicad: 6.0.6 -> 6.0.7 ([NixOS/nixpkgs⁠#184935](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/184935))
- [4af35d92](4af35d92a0) python3Packages.sphinx-rtd-theme: rename from sphinx_rtd_theme
- [ad6dd347](ad6dd34711) python3Packages.myst-parser: relax docutils constraint
- [c4dfae24](c4dfae243b) pika: init at 0.0.12
- [7729cf70](7729cf70da) n8n: 0.188.0 → 0.189.0
- [7d933d4c](7d933d4c34) jameica: ensure gsetting schema is available
- [3daa2739](3daa27391f) metasploit: 6.2.8 -> 6.2.10
- [c4a9eafb](c4a9eafb61) remmina: 1.4.25 -> 1.4.27
- [e824dfe5](e824dfe501) getoptions: init at 3.3.0
- [8ce54794](8ce54794cc) chromiumBeta: 104.0.5112.65 -> 104.0.5112.79
- [201eb18f](201eb18f4d) chromiumDev: 105.0.5195.10 -> 105.0.5195.19
- [9594f173](9594f17360) prl-tools: add patch against 5.19
- [42a4a464](42a4a46441) mixxx: 2.3.2 -> 2.3.3
- [b933abab](b933abab3f) python3Packages.bluetooth-adapters: init at 0.1.3
- [acb5660e](acb5660e33) python3Packages.home-assistant-bluetooth: init at 1.4.0
- [4d106d57](4d106d57cc) python3Packages.bleak-retry-connector: 1.1.0 -> 1.2.0
- [ef2202e4](ef2202e421) python3Packages.aiohomekit: 1.1.0 -> 1.2.3
- [1e98cfdb](1e98cfdb0a) python3Packages.bellows: 0.31.1 -> 0.31.2
- [d62812a9](d62812a9af) python3Packages.bleak: 0.14.3 -> 0.15.0
- [7f30a401](7f30a40199) python3Packages.meteoalertapi: 0.2.0 -> 0.3.0
- [a950ff6a](a950ff6a88) python3Packages.pyatv: 0.10.2 -> 0.10.3
- [74e181ea](74e181eaf3) python3Packages.pydeconz: 100 -> 101
- [bf3ac8e7](bf3ac8e768) python3Packages.pyrisco: 0.3.1 -> 0.5.1
- [3eb12f34](3eb12f34ed) python3Packages.python-miio: 0.5.11 -> 0.5.12
- [68be3cfc](68be3cfc67) python3Packages.xknx: 0.21.5 -> 0.22.1
- [65aac059](65aac0591f) python3Packages.zha-quirks: 0.0.77 -> 0.0.78
- [b9fee1ce](b9fee1ce63) home-assistant: 2022.7.7 -> 2022.8.0
- [4a67b036](4a67b03684) python3Packages.typer: reenable by disabling test on aarch64-linux
- [140d955e](140d955eba) zen-kernels: 5.18.15 -> 5.18.16
- [d866e4cb](d866e4cbbd) rapidfuzz-cpp: 1.1.0 -> 1.1.1
- [b2d3dbd8](b2d3dbd806) python310Packages.rapidfuzz: 2.1.3 -> 2.4.2
- [a15af572](a15af5725e) python310Packages.jarowinkler: 1.1.2 -> 1.2.0
- [81a0ad41](81a0ad4165) refinery-cli: init at 0.8.5
- [e098228d](e098228dc4) lima: 0.11.2 -> 0.11.3
- [24298916](2429891689) minikube: 1.26.0 -> 1.26.1
- [9623e322](9623e3221b) usql: 0.9.3 -> 0.11.12
- [2210891a](2210891a58) wasmedge: init at 0.10.1 ([NixOS/nixpkgs⁠#184801](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/184801))
- [4d422b32](4d422b3226) bumblebee: mark broken
- [f0f5be95](f0f5be951d) cdo: 1.9.10 -> 2.0.5 and add eccodes dependency for GRIB files ([NixOS/nixpkgs⁠#167743](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/167743))
- [0e4b730d](0e4b730d63) python3Packages.pygls: 0.12 → 0.12.1
- [e0a5ce3f](e0a5ce3f06) linuxKernel.packages.linux_hardened.oci-seccomp-bpf-hook: 1.2.5 -> 1.2.6
- [157a6c26](157a6c2613) mitmproxy: add SuperSandro2000 as maintainer
- [459e0412](459e041236) python3Packages.python-language-server: remove
- [7f77ad52](7f77ad5244) urlscan: 0.9.9 -> 0.9.10
- [77bbde1b](77bbde1b72) ntfy: add patch for emoji 2.0 compatibility
- [20249152](20249152ce) linux: 5.10.134 -> 5.10.135
- [b7b3e0bd](b7b3e0bd51) linux: 5.15.58 -> 5.15.59
- [f4372465](f437246542) linux: 5.18.15 -> 5.18.16
- [6f5368cf](6f5368cff9) linux: 5.4.208 -> 5.4.209
- [e4be613a](e4be613a8b) linux_latest-libre: 18825 -> 18837
- [941b70fb](941b70fb70) linux/hardened/patches/4.14: 4.14.288-hardened1 -> 4.14.290-hardened1
- [b588944c](b588944c55) linux/hardened/patches/4.19: 4.19.252-hardened1 -> 4.19.254-hardened1
- [fca28ee0](fca28ee089) linux/hardened/patches/5.10: 5.10.131-hardened1 -> 5.10.134-hardened1
- [e9c8925f](e9c8925f98) linux/hardened/patches/5.15: 5.15.55-hardened1 -> 5.15.58-hardened1
- [86bccf10](86bccf10b9) linux/hardened/patches/5.18: 5.18.12-hardened1 -> 5.18.15-hardened1
- [f23ac403](f23ac4035c) linux/hardened/patches/5.4: 5.4.206-hardened1 -> 5.4.208-hardened1
- [2e6e7db0](2e6e7db0d7) python310Packages.pyarr: init at 4.1.0
- [e83d4143](e83d414364) vgo2nix: mark as not broken as it builds correctly
- [3db246ad](3db246ad9d) kapp: 0.50.0 -> 0.51.0
- [c2732c85](c2732c85e1) python3Packages.cattrs: propagate exceptiongroup for python<3.11
- [55fa3990](55fa39903e) home-assistant: pin plugwise at 0.20.1
- [8f85662d](8f85662df0) python3Packages.pyswitchbot: 0.15.2 -> 0.17.3
- [e370a1d9](e370a1d9be) python3Packages.traccar: 0.10.1 -> 1.0.0
- [f5a6b487](f5a6b48766) idasen: 0.8.3 -> 0.9.0
- [a1bd4e3d](a1bd4e3df7) python3Packages.myst-parser: relax docutils constraint
- [282052f1](282052f1dd) linuxPackages.lttng-modules: 2.13.2 -> 2.13.4
2022-08-05 01:48:16 +00:00
2022-07-29 13:51:14 +01:00
2022-07-10 19:48:51 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
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/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;  # 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%