github-actions[bot] c166fa47e6 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - d08394e7 -> abfd3117 (#126)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: d08394e7cd...abfd311791

- [902a2859](902a285918) python310Packages.fqdn: init at 1.5.1
- [75f801a8](75f801a8b1) python310Packages.poetry-dynamic-versioning: update inputs
- [4b348d6a](4b348d6a6f) github-runner: Avoid /homeless-shelter bug ([NixOS/nixpkgs⁠#170892](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/170892))
- [d9b419dd](d9b419dd0d) timetagger: 22.3.1 -> 22.4.2
- [1c49b812](1c49b81263) config.allowUnfree: define as option
- [9f473092](9f473092f8) config.allowBroken: define as option
- [17525e5d](17525e5d37) python310Packages.zeroconf: 0.38.4 -> 0.38.5
- [7c084fde](7c084fde74) bionic: fix evaluation on some platforms
- [380878b5](380878b5d1) go-motion: 2018-04-09 -> 1.1.0
- [1d9929a2](1d9929a29e) python310Packages.django-taggit: 2.1.0 -> 3.0.0
- [d5de6ac7](d5de6ac75e) python310Packages.pytest-datafiles: 2.0 -> 2.0.1
- [88d84fa6](88d84fa655) python310Packages.pytest-datafiles: enable tests
- [39ac55ea](39ac55ead8) python310Packages.gradient: 1.11.0 -> 2.0.3
- [c0824782](c08247828f) python310Packages.pytorch-pfn-extras: 0.5.7 -> 0.5.8
- [65e57dbb](65e57dbb52) python310Packages.isoduration: init at 20.11.0
- [126f2960](126f296044) tup: patch tup to find setuid fusermount
- [1ca149cc](1ca149cced) python310Packages.murmurhash: 1.0.6 -> 1.0.7
- [50d31845](50d31845fc) python310Packages.monty: 2022.1.19 -> 2022.4.26
- [a1337c5d](a1337c5d1f) python310Packages.gensim: 4.1.2 -> 4.2.0
- [02a4cef8](02a4cef89c) n8n: 0.174.0 → 0.175.0
- [d515e117](d515e11799) python310Packages.ghp-import: 2.0.2 -> 2.1.0
- [fe2be5ee](fe2be5eec2) bore-cli: 0.2.3 -> 0.4.0
- [01048fa3](01048fa37c) python310Packages.ghp-import: disable on older Python releases
- [54c357ab](54c357ab93) python310Packages.pytelegrambotapi: 4.4.1 -> 4.5.0
- [073c11c7](073c11c7d3) kubecfg: 0.22.0 -> 0.26.0 ([NixOS/nixpkgs⁠#171259](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/171259))
- [9db41e2c](9db41e2cea) python310Packages.jedi-language-server: 0.35.1 -> 0.36.0
- [cccc4592](cccc45928a) python310Packages.commoncode: 30.1.1 -> 30.2.0
- [6a197290](6a19729060) wishlist: init at 0.4.0
- [aff0aeb3](aff0aeb33d) python310Packages.zigpy-deconz: 0.15.0 -> 0.16.0
- [b521c51c](b521c51c83) python310Packages.zigpy-deconz: disable on older Python releases
- [9f05fc66](9f05fc6661) config.allowUnsupportedSystem: define as option
- [1ce2275c](1ce2275cf0) sigma-cli: 0.4.2 -> 0.4.3
- [129a6899](129a6899a0) pantum-driver: init at 1.1.84
- [a51544b7](a51544b715) teams: fix source hash of 1.5.00.10453 on Darwin
- [3a8257c7](3a8257c77b) sigma-cli: add meta.mainProgram
- [6870929a](6870929ad1) python310Packages.gensim:disable on older Python releases
- [2e24a02d](2e24a02d0f) python310Packages.pims: enable tests
- [12082b1f](12082b1f94) python310Packages.gensim: remove whitespace
- [fc003057](fc00305708) pulumi-bin: 3.30.0 -> 3.31.0
- [3e36af97](3e36af9768) quickemu: fix spice-gtk dependency
- [e9452b3b](e9452b3b3e) python3Packages.preprocess-cancellation: fix build
- [a040d8f3](a040d8f34a) python3Packages.pyhiveapi: 0.5.1 -> 0.5.3
- [2a0b704f](2a0b704f16) python310Packages.pims: ignore DeprecationWarning
- [69945502](6994550224) hjson-go: 3.1.1 -> 3.2.0
- [fddfaa3b](fddfaa3b72) firefox: remove unused option
- [1fddd740](1fddd7401a) htop: remove linux only hint from description
- [37f3a23a](37f3a23a02) fcft: 3.0.1 -> 3.1.1
- [9f8d8443](9f8d844340) foot: 1.11.0 -> 1.12.1
- [f9ec68bd](f9ec68bd6d) python310Packages.ropper: 1.13.6 -> 1.13.7
- [733730ef](733730eff8) john: update source to GitHub and homepage url
- [eeb57890](eeb57890bb) python310Packages.pywinrm: 0.4.2 -> 0.4.3
- [d37aa7fe](d37aa7fe6a) python310Packages.pytenable: 1.4.4 -> 1.4.6
- [d4894355](d4894355c1) vim/update.py: distinguish between vim/neovim plugins
- [a7ca41f1](a7ca41f1ff) python310Packages.secretstorage: 3.3.1 -> 3.3.2
- [494ad978](494ad97836) gof5: init at 0.1.4 ([NixOS/nixpkgs⁠#169422](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/169422))
- [21f526a7](21f526a7f3) vimPlugins: update
- [1df86fce](1df86fce58) saleae-logic-2: 2.3.50 -> 2.3.51
- [6c69577b](6c69577b23) colmena: 0.2.2 -> 0.3.0
- [4427d9cd](4427d9cd73) gitbatch: 2019-12-19 -> 0.6.1
- [738d1454](738d1454fe) gdal_2: fix build ([NixOS/nixpkgs⁠#169738](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/169738))
- [2c83b549](2c83b54928) bottles: 2022.4.28-trento -> 2022.5.2-trento
- [e4dfaba5](e4dfaba506) solc: disable z3 strict version check
- [114ea5a0](114ea5a07e) lisgd: 0.3.3 -> 0.3.4
- [d770c335](d770c33587) cvehound: 1.0.4 -> 1.0.9
- [d60e768c](d60e768cb1) redpanda: init at 21.11.15
- [4558d28c](4558d28cfc) scalafix: 0.9.0 -> 0.10.0, completions, setup-hook instead of jdk ([NixOS/nixpkgs⁠#171074](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/171074))
- [24c33ab7](24c33ab795) metals: 0.11.2 -> 0.11.4 ([NixOS/nixpkgs⁠#171127](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/171127))
- [dda33d2b](dda33d2b2b) nixos/doc/manual: Remove trailing white space from 22.05 release notes
- [064da262](064da2621a) linux_testing_bcachefs: unstable-2022-04-08 -> unstable-2022-04-25
- [58d1bd20](58d1bd206b) bcachefs-tools: unstable-2022-04-08 -> unstable-2022-05-02
- [46241e15](46241e156c) nixos/virtualisation.oci-containers: Use podman as the default backend
- [74fb11c3](74fb11c352) moonraker: unstable-2022-03-10 -> unstable-2022-04-23
- [53bc699e](53bc699e2c) python310Packages.teslajsonpy: 2.1.0 -> 2.2.0
- [3c79fddd](3c79fddd9f) python310Packages.hahomematic: 1.2.1 -> 1.2.2
- [6fcda619](6fcda61924) python310Packages.youtube-search-python: 1.6.4 -> 1.6.5
- [67947fa1](67947fa100) python310Packages.scmrepo: 0.0.19 -> 0.0.20
- [deb70bd2](deb70bd200) ocamlPackages.uuuu: 0.2.0 → 0.3.0
- [7e315248](7e315248b7) python310Packages.filetype: 1.0.10 -> 1.0.13
- [3c7a994c](3c7a994c85) python310Packages.flask-jwt-extended: 4.3.1 -> 4.4.0
- [6509cea3](6509cea388) python310Packages.flask-jwt-extended: switch to pytestCheckHook
- [86a69080](86a6908045) coqPackages.metacoq: create package ([NixOS/nixpkgs⁠#162639](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/162639))
- [fb5fd132](fb5fd13212) python310Packages.cert-chain-resolver: add missing input
- [fa1e8856](fa1e885698) gitRepo: 2.24.1 -> 2.25
- [1d43276e](1d43276e4e) python310Packages.ansible-later: 2.0.11 -> 2.0.12
- [8aa77956](8aa77956a1) python310Packages.bpython: disable failing test
- [2e13dc77](2e13dc7795) python310Packages.glances-api: 0.3.4 -> 0.3.5
- [a032d2f2](a032d2f244) python310Packages.envs: 1.3 -> 1.4
- [346742d3](346742d3cb) python310Packages.jug: 2.1.1 -> 2.2.0
- [bbf483c4](bbf483c46e) nixos/release: add podman, oci-containers.podman to tested
- [82507844](825078447a) podman: add oci-containers.podman to passthru.tests
- [6ac337aa](6ac337aa06) python310Packages.namedlist: add patch for collections.abc
- [9ded9f11](9ded9f1100) harec: init at 0.pre+date=2022-04-26
- [b597b5c3](b597b5c3fc) hare: init at 0.pre+date=2022-04-27
- [02967092](0296709299) python310Packages.pyomo: 6.3.0 -> 6.4.0
- [bdcb8188](bdcb818804) Replace "rm" call with "git rm"
- [67f61465](67f6146500) glibmm: 2.66.2 -> 2.66.3
- [fb60c5e7](fb60c5e7b3) solc: add darwin binary for now
- [75a38be9](75a38be967) python310Packages.jug: update inputs
- [7523edc3](7523edc3e9) zellij: 0.27.0 -> 0.29.1
- [7af591c7](7af591c79c) gitlab: 14.10.0 -> 14.10.1 ([NixOS/nixpkgs⁠#171363](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/171363))
- [f7041d78](f7041d7893) nextcloud-client: 3.4.4 -> 3.5.0
- [7f9c7443](7f9c7443ae) yarn2nix: extend NixOS/nix[NixOS/nixpkgs⁠#5128](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/5128) workaround to 2.4+
- [8907bea5](8907bea5c1) python310Packages.types-paramiko: 2.8.21 -> 2.10.0
- [14d77e89](14d77e895d) qgis: 3.24.1 -> 3.24.2
- [8d03b241](8d03b2418e) qgis-ltr: 3.22.5 -> 3.22.6
- [3f2a09af](3f2a09af84) firefox: 99.0.1 -> 100.0
- [a1f9d3a5](a1f9d3a52e) firefox-bin: 99.0.1 -> 100.0
- [f6fd7e36](f6fd7e36d3) firefox-esr: 91.8.0esr -> 91.9.0esr
- [c7733032](c773303215) Revert "Revert "nss_latest: 3.76.1 -> 3.77""
- [24738379](2473837984) nss_latest: 3.77 -> 3.78
- [deed4a3d](deed4a3d6c) nixos/stage-1: remove dead code
- [b5749189](b5749189cb) python310Packages.canonicaljson: 1.6.0 -> 1.6.1
- [7481fa91](7481fa9135) calamares-nixos-extensions: init at 0.3.8
- [d8eaef42](d8eaef42d6) maintainer-list: add vlinkz
- [3ec2fd82](3ec2fd8203) calamares: fix modules functionality and add nixos support
- [67b5b4ca](67b5b4cabf) installation-cd: add calamares-gnome cd
- [89096bcc](89096bcce0) installation-cd: add calamares-plasma5 cd
- [c21720a4](c21720a46e) nixos/release: add calamares installer
- [bcb44569](bcb4456920) nixos/release-notes: add calamares installer to highlights
- [057f88b3](057f88b3d2) kpmcore: 4.2.0 -> 22.04.0
- [607152a4](607152a41d) partition-manager: 4.2.0 -> 22.04.0
- [fa380c99](fa380c9970) python310Packages.canonicaljson: update disable
- [4d5de1d8](4d5de1d8d1) nixVersions.unstable: pre20220428 -> pre20220503
- [f1531b1b](f1531b1b82) unifi: 7.0.25 -> 7.1.61
- [5e420c24](5e420c2455) stdenv/check-meta: turn validity.valid into a str
- [3a34b6c8](3a34b6c820) stdenv/check-meta: add an eval warning option
- [4def222e](4def222ea4) stdenv/check-meta: add a "maintainerless" warning
- [6a415cd3](6a415cd37c) containerd: 1.6.3 -> 1.6.4
- [4df2c1fe](4df2c1fe35) jwt-cli: 5.0.2 -> 5.0.3
- [3382215f](3382215fd7) firefox-devedition-bin-unwrapped: 100.0b7 -> 101.0b2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-05-05 09:41:14 +01:00
2022-04-14 01:37:17 +03:00
2022-04-09 15:57:29 +03: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/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:rycee/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%