github-actions[bot] 7beb27ea29 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 2770cc0b -> 4bc1c1bd (#208)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 2770cc0b1e...4bc1c1bd2f

- [6537fa2a](6537fa2abb) steam/fhsenv.nix: Add libindicator-gtk2 and libdbusmenu-gtk2 ([NixOS/nixpkgs⁠#181023](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/181023))
- [a18260a6](a18260a6ec) python310Packages.zigpy-znp: 0.8.0 -> 0.8.1
- [dc030343](dc030343f2) exploitdb: 2022-07-02 -> 2022-07-12
- [2349dd5c](2349dd5cb2) graphia: 2.2 -> 3.0
- [d7da02c1](d7da02c1e0) zulip-term: 0.6.0 -> 0.7.0
- [164afe48](164afe4801) libfprint: 1.94.3 -> 1.94.4
- [726c7daa](726c7daaf5) python310Packages.channels-redis: 3.4.0 -> 3.4.1
- [c77489d5](c77489d524) libressl: fix build on aarch64-darwin
- [bd97387c](bd97387c0e) boringtun: 0.4.0 -> 0.5.0
- [1ea04d95](1ea04d9567) python310Packages.meilisearch: 0.18.3 -> 0.19.0
- [72eb38a8](72eb38a823) haskell.packages.ghc923.validity: drop obsolete overrides
- [62840ca1](62840ca1d9) python310Packages.cssutils: 2.4.2 -> 2.5.0
- [900632c3](900632c3a3) haskellPackages.monad-validate: drop obsolete override
- [454100e8](454100e881) figlet: package with contributed fonts
- [15a5556d](15a5556d2a) python310Packages.globus-sdk: 3.10.0 -> 3.10.1
- [47f61aae](47f61aaeb7) python310Packages.django-extensions: 3.1.5 -> 3.2.0
- [0c95ce31](0c95ce31ed) python310Packages.mayavi: 4.7.4 -> 4.8.0
- [8d73ee91](8d73ee9187) chromiumBeta: 104.0.5112.29 -> 104.0.5112.39
- [8d79dfe6](8d79dfe6f0) nuget-to-nix: enable default netrc
- [7e30ebb2](7e30ebb2c2) nixos/lxqt: add a module for the lxqt portal
- [03a9bec4](03a9bec472) python310Packages.aeppl: 0.0.31 -> 0.0.33
- [45c4f3b4](45c4f3b422) python310Packages.yfinance: 0.1.72 -> 0.1.74
- [7373f4ac](7373f4ac16) python310Packages.homematicip: 1.0.3 -> 1.0.4
- [2c994cf1](2c994cf1c7) linux_zen: 5.18.10-zen1 -> 5.18.11-zen1
- [c1f94c40](c1f94c40df) linux_lqx: 5.18.10-lqx1 -> 5.18.11-lqx1
- [c2fa5569](c2fa5569a0) zen-kernels: add pedrohlc as maintainer
- [b110339b](b110339bdf) python310Packages.archinfo: 9.2.9 -> 9.2.10
- [d136a481](d136a4817f) python310Packages.ailment: 9.2.9 -> 9.2.10
- [7fac31ca](7fac31ca95) python310Packages.pyvex: 9.2.9 -> 9.2.10
- [bfa99e47](bfa99e4705) python310Packages.claripy: 9.2.9 -> 9.2.10
- [9b89244b](9b89244b24) python310Packages.cle: 9.2.9 -> 9.2.10
- [d75b12e2](d75b12e2c4) python310Packages.angr: 9.2.9 -> 9.2.10
- [34edeadd](34edeaddec) python310Packages.pytraccar: 0.10.0 -> 0.10.1
- [5f2c50c7](5f2c50c7df) python310Packages.google-cloud-iot: 2.5.1 -> 2.6.0
- [133476a8](133476a8d5) zafiro-icons: 1.2 -> 1.3 ([NixOS/nixpkgs⁠#181014](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/181014))
- [011e5efc](011e5efc59) python310Packages.yolink-api: 0.0.8 -> 0.0.9
- [5646dd47](5646dd4747) python310Packages.google-cloud-logging: 3.1.2 -> 3.2.0
- [5f87d1e5](5f87d1e5bd) python310Packages.google-cloud-runtimeconfig: 0.33.1 -> 0.33.2
- [05285cab](05285cab55) zls: unstable-2021-06-06 -> 0.9.0
- [8b4718e7](8b4718e736) zig_0_8_1: remove
- [a3748c82](a3748c82fd) haskellPackages: mark builds failing on hydra as broken
- [85dfc90f](85dfc90f5a) haskellPackages: collect hasql test overrides in one place
- [4cd2df0a](4cd2df0a47) haskellPackages.hasql-dynamic-statements: skip db dependent tests
- [0d1e99de](0d1e99decb) haskellPackages.hspec-wai-json: unbreak
- [2f5e7982](2f5e7982ec) haskellPackages.postgrest: mark as broken
- [567fd7b1](567fd7b184) python310Packages.pyruckus: 0.14 -> 0.16
- [2c9984a4](2c9984a471) framac: 24.0 (Chromium) → 25.0 (Manganese)
- [dbe13377](dbe1337750) gh: 2.14.0 -> 2.14.1
- [c17e97b1](c17e97b121) wakeonlan: 0.41 -> 0.42
- [74a366bd](74a366bdbb) ncdu: 1.16 -> 1.17
- [dcfd1b02](dcfd1b027f) python310Packages.pulumi-aws: 5.9.2 -> 5.10.0
- [972106f9](972106f90f) curtail: 1.3.0 -> 1.3.1
- [6e5dd2a2](6e5dd2a2ca) ffmpeg-normalize: 1.23.0 -> 1.23.1
- [47947882](479478822b) velero: added v prefix to version to fix client/server version validation
- [0b91cc09](0b91cc0961) firefox-esr-102-unwrapped: 102.0esr -> 102.0.1esr
- [32a83dc8](32a83dc840) kyverno: init at 1.7.0
- [3489b30c](3489b30c06) python310Packages.types-requests: 2.28.0 -> 2.28.1
- [1e2c77eb](1e2c77eb4c) pciutils: update homepage
- [88d388d1](88d388d168) kde/plasma5: 5.25.2 -> 5.25.3
- [2d123c3c](2d123c3c4b) coqPackages.coqeal: 1.1.0 → 1.1.1
- [7c6a8f0b](7c6a8f0b38) tig: 2.5.5 -> 2.5.6
- [c0c767ee](c0c767ee26) python310Packages.howdoi: disable failing test
- [f88533ec](f88533ec37) neovim-remote: disable tests on Darwin
- [f60f1655](f60f165501) nixos/proxmox-image: use qemu 6.2 for building VMA
- [26c66bc7](26c66bc7c8) nixos/release: add proxmox LXC and VMA
- [82d1ed89](82d1ed89d1) python310Packages.hahomematic: 2022.7.5 -> 2022.7.7
- [b7b86c4f](b7b86c4f54) add stable anchor
- [83a35abf](83a35abff5) python310Packages.pex: 2.1.95 -> 2.1.97
- [a8c2b4f0](a8c2b4f0e4) python310Packages.aesara: 2.7.6 -> 2.7.7
- [43b37c60](43b37c60c0) nbxplorer: 2.3.26 -> 2.3.28
- [b45e4a00](b45e4a004e) btcpayserver: 1.5.4 -> 1.6.1
- [79aebd3e](79aebd3e05) btcpayserver: enable build on darwin
- [3d1205de](3d1205de91) doc: clarify coq override
- [8c77dc96](8c77dc967f) python310Packages.aioaladdinconnect: 0.1.21 -> 0.1.23
- [0b61d53b](0b61d53bd0) python310Packages.pymc: 4.0.1 -> 4.1.2
- [96e7dc4f](96e7dc4f24) n8n: 0.185.0 → 0.186.0
- [ac37f487](ac37f4873a) gnome-console: 42.beta -> 42.0
- [5a635bdf](5a635bdff9) d-spy: 1.2.0 → 1.2.1
- [2f038ea7](2f038ea737) gjs: 1.72.0 → 1.72.1
- [96ac2fd3](96ac2fd32e) gnome-desktop: 42.2 → 42.3
- [b27f418b](b27f418b91) librest_1_0: 0.9.0 → 0.9.1
- [f3eb585d](f3eb585dad) terraform: 1.2.4 -> 1.2.5 ([NixOS/nixpkgs⁠#181343](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/181343))
- [bfa3e73c](bfa3e73c95) python310Packages.jupyterlab: 3.3.4 -> 3.4.3 ([NixOS/nixpkgs⁠#181231](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/181231))
- [c308cc97](c308cc9734) aws-sso-cli: add xdg-utils dependency
- [5476ab31](5476ab31ca) aws-sso-cli: format with nixpkgs-fmt
- [9e716bf9](9e716bf99b) python310Packages.types-toml: 0.10.7 -> 0.10.8
- [5e6ec193](5e6ec193f8) python3Packages.trezor: 0.13.2 -> 0.13.3
- [d69641d0](d69641d012) python310Packages.circuitbreaker: 1.3.2 -> 1.4.0
- [3e5fba73](3e5fba739b) vmware-horizon-client: use legacy UI
- [0afe768a](0afe768a91) python310Packages.types-decorator: 5.1.7 -> 5.1.8
- [65f330a8](65f330a83d) Update doc/languages-frameworks/coq.section.md
- [18348a5e](18348a5e4d) deno: 1.23.3 -> 1.23.4
- [01ba1ceb](01ba1ceb0e) hadoop: fix failing evaluation on platforms other than x86_64-linux
- [38134efc](38134efc76) glibcLocales, glibcLocalesUtf8: only define non-null on linux-glibc
- [80045fe5](80045fe569) python310Packages.pyruckus: 0.14 -> 0.16
- [f66649b4](f66649b41e) syft: 0.50.0 -> 0.51.0
- [b76bd25a](b76bd25aca) gopls: 0.9.0 -> 0.9.1
- [d7aeec46](d7aeec462c) python310Packages.django: fix build with gdal and use correct geos version
- [d68d84d7](d68d84d793) python310Packages.google-cloud-redis: 2.8.1 -> 2.9.0
- [64f2b31d](64f2b31d87) python310Packages.google-cloud-language: 2.4.3 -> 2.5.1
- [7e0832c5](7e0832c5f9) python310Packages.google-cloud-org-policy: 1.3.3 -> 1.4.0
- [b90ee0a3](b90ee0a3dc) python310Packages.google-cloud-bigquery-storage: 2.14.0 -> 2.14.1
- [3076da65](3076da658e) grype: 0.41.0 -> 0.42.0
- [755bd306](755bd306f5) python310Packages.google-cloud-resource-manager: 1.5.1 -> 1.6.0
- [9b98f352](9b98f35203) python310Packages.google-cloud-pubsub: 2.13.2 -> 2.13.3
- [9154aee3](9154aee3bc) python310Packages.google-cloud-os-config: 1.12.0 -> 1.12.1
- [c92c7065](c92c70652e) python310Packages.google-cloud-websecurityscanner: 1.8.0 -> 1.8.1
- [f9418f4e](f9418f4eab) nushell: 0.64.0 -> 0.65.0
- [c6cb233b](c6cb233b4a) python310Packages.pyinsteon: 1.1.2 -> 1.1.3
- [89c6711d](89c6711d34) vault: 1.10.4 -> 1.11.0
- [ca39f38e](ca39f38e8e) vault-bin: 1.10.4 -> 1.11.0
- [32566323](32566323e3) metasploit: 6.2.4 -> 6.2.6
- [a85aa567](a85aa567ef) skopeo: 1.8.0 -> 1.9.0
- [6d5c66a9](6d5c66a9d9) python3Packages.bellows: 0.31.0 -> 0.31.1
- [12388840](1238884090) redis: 7.0.2 -> 7.0.3
- [38f8a4d7](38f8a4d71c) openscad: fix on wayland systems
- [9e0e2fda](9e0e2fdad0) home-assistant: 2022.7.3 -> 2022.7.4
- [0ae92922](0ae92922a1) nixos/tests/home-assistant: improve reload/restart test cases
- [e4f3664e](e4f3664e62) go_1_18: 1.18.3 -> 1.18.4
- [b52679fe](b52679fe88) keyd: init at 2.4.1
- [ed781ecb](ed781ecbea) meta
- [12ea6c11](12ea6c11ba) godns: 2.8.3 -> 2.8.4
- [28010c8d](28010c8de4) signal-desktop: 5.49.0 -> 5.50.0
- [3973b7d8](3973b7d826) kubernetes: 1.23.8 -> 1.23.9
- [5eb9bf55](5eb9bf5565) alejandra: 1.5.0 -> 2.0.0
- [647e5317](647e5317eb) sqlfluff: 1.1.0 -> 1.2.0
- [5ad0643e](5ad0643e1c) nodejs-18_x: 18.5.0 -> 18.6.0
- [ca03b94d](ca03b94dd7) python310Packages.levenshtein: 0.19.1 -> 0.19.2
- [71f758e6](71f758e616) gnome-console: 42.0 -> 42.2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-15 03:06:36 +01:00
2022-07-08 16:53:23 +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%