github-actions[bot] 12eac575db flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 8ba12042 -> d639b2df
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 8ba120420f...d639b2dfac

- [c2cc9aea](c2cc9aeafd) Use config name by default, falling back to attr name
- [9bfaebda](9bfaebda3e) libmatroska: 1.6.3 -> 1.7.1
- [13bd270b](13bd270b74) libebml: 1.4.2 -> 1.4.4
- [cd2ee5e1](cd2ee5e19e) python3Packages.pyupgrade: 3.0.0 -> 3.1.0
- [11b3a26e](11b3a26ede) python3Packages.pyupgrade: update disabled
- [6aa99d48](6aa99d482b) ddcutil: 1.3.0 -> 1.3.2
- [78be5507](78be5507bd) sil-padauk: 3.003 → 5.001
- [6e37ec0c](6e37ec0c48) sil-abyssinica: 1.500 → 2.100
- [01027ad0](01027ad07d) faas-cli: 0.14.10 -> 0.14.11
- [c04184ba](c04184ba16) mkvtoolnix: 70.0.0 -> 71.1.0
- [991732fe](991732fe47) flyctl: 0.0.414 -> 0.0.415
- [3937c0c4](3937c0c474) nextcloud-client: 3.6.0 -> 3.6.1
- [ea8cf2e4](ea8cf2e486) nixos/github-runners: support fine-grained personal access tokens
- [0f2a12df](0f2a12dffd) python310Packages.aioswitcher: 3.0.3 -> 3.1.0
- [d66de449](d66de449fc) python310Packages.dask-jobqueue: 0.8.0 -> 0.8.1
- [3819d5f7](3819d5f7c0) python310Packages.nc-dnsapi: init at 0.1.5
- [0516d23a](0516d23a62) python310Packages.atom: 0.8.1 -> 0.8.2
- [ec43390b](ec43390b89) sbt-extras: 2022-10-03 -> 2022-10-17 ([NixOS/nixpkgs⁠#196694](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/196694))
- [17970631](179706319f) oh-my-zsh: 2022-10-14 -> 2022-10-19 ([NixOS/nixpkgs⁠#196736](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/196736))
- [cd0efc8a](cd0efc8a4c) python310Packages.aws-lambda-builders: 1.19.0 -> 1.20.0
- [f1a6f374](f1a6f374f5) python310Packages.azure-mgmt-containerservice: 20.4.0 -> 20.5.0
- [a9bb6408](a9bb64088d) python310Packages.azure-storage-file-share: 12.10.0 -> 12.10.1
- [b362f100](b362f100ac) python310Packages.clize: 4.2.1 -> 5.0.0
- [b143fcf2](b143fcf25c) python310Packages.runway-python: rename input
- [c6fba7c2](c6fba7c2de) beam-modules/fetch-rebar-deps: Fix incorrect usage of 'prePhases' attribute
- [ce97b101](ce97b1017a) python310Packages.django-celery-beat: 2.3.0 -> 2.4.0
- [e0f2f2b6](e0f2f2b676) ormolu/fourmolu: Fix build on aarch64-darwin
- [17b8bc63](17b8bc63eb) python310Packages.atom: disable on older Python releases
- [d9236f98](d9236f98ea) python310Packages.azure-mgmt-containerservice: update disabled
- [ec5d7e68](ec5d7e687a) python310Packages.azure-storage-file-share: adjust input
- [0492580b](0492580bef) python310Packages.clize: remove postPatch
- [5e679251](5e679251a9) python310Packages.django-celery-beat: disable on older Python releases
- [c4444888](c44448888c) python310Packages.clize: add missing input
- [a3995cc7](a3995cc702) python310Packages.fastbencode: 0.0.13 -> 0.0.15
- [83728a5c](83728a5c43) python310Packages.aioswitcher: disable on older Python releases
- [9d109443](9d109443d6) gosec: 2.13.1 -> 2.14.0
- [14c5caba](14c5cabab1) python310Packages.niaarm: update disabled
- [1adaf54c](1adaf54c9f) snapper-gui: ValueError: Namespace Gtk not available
- [290d7b28](290d7b2819) prismlauncher: init at 5.0
- [879c2dff](879c2dffe1) polymc: remove
- [fcbbc69f](fcbbc69f13) release-notes-2205: suggest using prismlauncher
- [49c81f00](49c81f001c) release-notes: state that PolyMC has been replaced
- [5e838fa9](5e838fa9ac) netplan: fix cross compilation by replacing hardcoded pkg-config with
- [ac92b409](ac92b409b3) boost: if isMips use the "cross compile" codepath unconditionally
- [2df2b528](2df2b52806) boost/generic.nix: reference commit-hash in comment
- [bf3412c2](bf3412c2c9) python310Packages.nbclassic: fix input name
- [6b5ef072](6b5ef0729f) oh-my-posh: 12.3.3 -> 12.6.1
- [7d8cc18d](7d8cc18d2b) protoc-gen-connect-go: 1.0.0 -> 1.1.0
- [2122fc67](2122fc67ad) circumflex: init at 2.6
- [fba19d02](fba19d0290) maintainers: add mktip
- [da669a62](da669a6281) goreleaser: 1.12.1 -> 1.12.2
- [ecc04fdd](ecc04fdd85) yq-go: 4.28.1 -> 4.28.2
- [55708226](5570822640) python310Packages.gdown: 4.5.2 -> 4.5.3
- [08803b1c](08803b1c1e) python310Packages.python-fullykiosk: init at 0.0.11
- [b622a51a](b622a51a58) home-assistant: update component-packages
- [24c428a5](24c428a583) mac-fdisk: init at 0.1.16
- [28726fad](28726fadc0) pdisk: init at 0.9
- [d19c0a65](d19c0a65e4) top-level/aliases: make mpv-with-scripts migration easier to understand
- [58f578b1](58f578b1f0) python310Packages.mypy-boto3-s3: 1.24.76 -> 1.24.94
- [c698ac40](c698ac4090) python310Packages.devolo-plc-api: 0.8.0 -> 0.8.1
- [dfcb1937](dfcb1937b1) rnnoise-plugin: 0.91 -> 1.03
- [34cc7ef1](34cc7ef168) python310Packages.httpagentparser: 1.9.3 -> 1.9.5
- [bf3b90ba](bf3b90baa9) python310Packages.twilio: 7.14.2 -> 7.15.0
- [7809910f](7809910fd6) python310Packages.types-setuptools: 65.5.0.0 -> 65.5.0.1
- [bda92092](bda9209265) hydrus: 502a -> 503
- [097aeaa9](097aeaa976) python310Packages.google-cloud-datastore: 2.8.3 -> 2.9.0
- [ab411f16](ab411f16f1) deno: 1.26.1 -> 1.26.2
- [53c71f0c](53c71f0cc8) terraform: 1.3.2 -> 1.3.3
- [6a1a5b4b](6a1a5b4b3a) jetty: 11.0.8 -> 11.0.12
- [1e714bc8](1e714bc88b) desync: 0.9.2 -> 0.9.3
- [f2792bef](f2792befd8) roxctl: 3.72.0 -> 3.72.1
- [1e3fded1](1e3fded1cb) mold: 1.5.1 -> 1.6.0
- [81674fb5](81674fb565) micropad: 4.0.0 -> 4.1.0
- [072df9d7](072df9d737) mob: 3.2.0 -> 4.0.0
- [7f625a2b](7f625a2b52) glooctl: 1.12.21 -> 1.12.31
- [73da0677](73da0677e7) argocd: 2.4.14 -> 2.4.15
- [1a79b152](1a79b1529c) riot-redis: 2.18.1 -> 2.18.5
- [ab454567](ab454567ac) buildkit: 0.10.4 -> 0.10.5
- [374fdff1](374fdff128) cilium-cli: 0.12.4 -> 0.12.5
- [742243f0](742243f041) wesnoth: 1.16.5 -> 1.16.6
- [cd68145f](cd68145f49) python310Packages.jupyter-repo2docker: 2022.02.0 -> 2022.10.0
- [7ef74d47](7ef74d47f8) grpc-gateway: 2.11.3 -> 2.12.0
- [142781c7](142781c701) cyberchef: 9.46.5 -> 9.48.0
- [ce304a40](ce304a40be) python310Packages.jupyterlab_server: 2.16.0 -> 2.16.1
- [04580165](04580165b3) python310Packages.mne-python: 1.2.0 -> 1.2.1
- [56f6d633](56f6d6337e) diffsitter: init at 0.7.1
- [0c8ace38](0c8ace38c2) diffsitter: remove comment
- [aba97b74](aba97b7409) dirstalk: fix darwin build
- [9c1c9af5](9c1c9af5ed) zine: 0.6.0 -> 0.7.0
- [b17d484c](b17d484c7e) python310Packages.patiencediff: 0.2.3 -> 0.2.6
- [560c1ead](560c1eada8) python310Packages.pex: 2.1.110 -> 2.1.111
- [16e73cb9](16e73cb914) python310Packages.pika: 1.3.0 -> 1.3.1
- [895c3e37](895c3e3756) dioxus-cli: fix darwin build
- [bcbc1bd0](bcbc1bd0ec) python310Packages.portalocker: 2.5.1 -> 2.6.0
- [90529fc6](90529fc619) python310Packages.pulumi-aws: 5.17.0 -> 5.18.0
- [4b6d3203](4b6d32030f) terraform-providers.auth0: 0.38.0 → 0.39.0
- [0aaa7d56](0aaa7d5684) terraform-providers.gridscale: 1.16.0 → 1.16.1
- [6f519c1a](6f519c1aee) terraform-providers.newrelic: 3.5.0 → 3.5.1
- [3cc5127a](3cc5127a8d) terraform-providers.opentelekomcloud: 1.31.5 → 1.31.6
- [083e8ed0](083e8ed0a7) terraform-providers.spotinst: 1.85.0 → 1.85.1
- [af0ffb8b](af0ffb8b0c) python310Packages.pyatmo: 7.1.1 -> 7.2.0
- [40cc6d49](40cc6d4969) python310Packages.google-cloud-datastore: disable on older Python releases
- [7c36e0ee](7c36e0eeb8) python310Packages.jupyter-repo2docker: update order
- [6b25dc76](6b25dc7633) bun: 0.2.0 -> 0.2.1
- [ad8236b4](ad8236b435) bundletool: 1.11.2 -> 1.12.1
- [c948b4f0](c948b4f02b) checkSSLCert: 2.52.0 -> 2.53.0
- [b477d037](b477d037e6) ocamlPackages.tezos-bls12-381-polynomial: init at 0.1.2
- [f52d456f](f52d456fe2) python310Packages.mne-python: disable on older Python releases
- [c235f8ea](c235f8eacd) cloudfox: 1.7.2 -> 1.8.1
- [52fb09e2](52fb09e26b) python310Packages.patiencediff: enable tests
- [6fbde143](6fbde1430e) python310Packages.async-upnp-client: 0.31.2 -> 0.32.0
- [e01eb5e5](e01eb5e52d) terrascan: 1.15.2 -> 1.16.0
- [d82ac25f](d82ac25f9e) dnsproxy: 0.46.0 -> 0.46.1
- [34ee9229](34ee922953) drone-cli: 1.5.0 -> 1.6.0
- [49c46352](49c463523c) ecs-agent: 1.64.0 -> 1.65.0
- [29ab7ca3](29ab7ca398) esbuild: 0.15.11 -> 0.15.12
- [cfe77e5d](cfe77e5de2) bossa: 1.8 -> 1.9.1
- [9487528b](9487528bab) gatekeeper: 3.9.2 -> 3.10.0
- [1e9864c8](1e9864c85e) nixos/nixpkgs: Only error when nixpkgs options are actually used
- [c19ad106](c19ad1063f) topgrade: 9.0.1 -> 9.1.1
- [ed1ad8c6](ed1ad8c654) python310Packages.portalocker: add pythonImportsCheck
- [edc4feb4](edc4feb452) python310Packages.httpagentparser: disable on older Python releases
- [dce82561](dce82561f7) ocamlPackages.graphql_ppx: use dune 3
- [0f4dad21](0f4dad2119) ocamlPackages.reason: 3.8.1 → 3.8.2
- [4eb9655f](4eb9655f71) bossa-arduino: init at 1.9.1-arduino2
- [4cb785c1](4cb785c1dc) vmagent: 1.82.0 -> 1.82.1
- [d7e3fc52](d7e3fc529b) k9s: 0.26.6 -> 0.26.7
- [87be8c22](87be8c2279) podman: 4.2.1 -> 4.3.0
- [5a1a454d](5a1a454d36) gh: 2.18.0 -> 2.18.1
- [62cc7966](62cc796612) gitAndTools.gex: init at 0.3.3
2022-10-21 01:49:33 +00:00
2022-07-10 19:48:51 +01:00
2022-09-03 21:45:31 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
Dependency updater Dependency Updater Status
Matrix Chat Matrix Chat

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; # Not needed if you're using the Home-Manager module instead
  };
}

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%