github-actions[bot] 98b33e49e1 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - cd0ffd3f -> 123db833
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: cd0ffd3f5f...123db83348

- [2d4dcb03](2d4dcb03bb) pythia: move rsync to nativeBuildInputs
- [2f87975f](2f87975f2d) maturin: 0.9.4 -> 0.10.4, fix build
- [725468af](725468af89) factorio-experimental: 1.1.32 -> 1.1.33
- [d1605b45](d1605b4538) Add back an updated version of the XDG-config paths patch
- [c2314650](c23146505c) spotify: upgrade dependency to ffmpeg4
- [a5e08808](a5e088088d) gobgp: 2.26.0 -> 2.27.0
- [7b4c1db3](7b4c1db393) gobgpd: 2.26.0 -> 2.27.0
- [ca6daab2](ca6daab25b) kbs2: 0.2.6 -> 0.3.0
- [b54ce41a](b54ce41a75) maturin: fix passthru test
- [bcf94844](bcf9484480) sqlx-cli: 0.4.2 -> 0.5.2
- [b8336c2b](b8336c2b8a) formats.ini: Introduce `listToValue` argument ([NixOS/nixpkgs⁠#121613](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121613))
- [0a27a76b](0a27a76b27) hedgedoc: 1.7.2 -> 1.8.0
- [a715d90f](a715d90fb0) mercurial: add patches for Rust status implementation
- [3a3e05b5](3a3e05b56f) breezy: 3.1.0 -> 3.2.0
- [cdb6169a](cdb6169aa5) metadata-cleaner: 1.0.5 -> 1.0.6
- [23df2461](23df246155) esphome: remove dotlambda from maintainers
- [bd39c63b](bd39c63b8f) python3Packages.aioesphomeapi: remove dotlambda from maintainers
- [78056e47](78056e4775) devdocs-desktop: 0.7.1 -> 0.7.2
- [84261ced](84261ced6c) bpytop: 1.0.64 -> 1.0.65
- [35e57e81](35e57e81ae) tortoisehg: fix build
- [7ef1e448](7ef1e448a9) eksctl: 0.46.0 -> 0.47.0
- [e5e5689e](e5e5689e0a) entr: 4.8 -> 4.9
- [49cfef8c](49cfef8c69) Switch to the simple patching of wxWidgets approach
- [7c614a40](7c614a4030) nerdctl: 0.8.0 -> 0.8.1
- [109dabc4](109dabc40b) python3Packages.aioesphomeapi: add fab to maintainers
- [8d76ef73](8d76ef7355) strace: add myself as maintainer
- [be77d38b](be77d38b73) intel-gmmlib: 21.1.2 -> 21.1.3
- [1305493e](1305493e66) python3Packages.aioesphomeapi: add hexa to maintainers
- [1b9d08b2](1b9d08b250) esphome: add hexa to maintainers
- [2cea48e5](2cea48e5c6) sacc: fix build on darwin
- [3e62e383](3e62e383f4) restream: init at 1.1 ([NixOS/nixpkgs⁠#120596](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/120596))
- [cfb29088](cfb29088b4) linux_lqx: 5.11.16 -> 5.11.18
- [8a249aa7](8a249aa732) exim: 4.94 -> 4.94.2
- [745a8ea5](745a8ea503) xen: remove unreferenced patches
- [8fda249f](8fda249f9c) recapp: init at 1.1.1
- [97a81efc](97a81efca3) lens: 4.2.0 -> 4.2.4
- [3c1a7661](3c1a76611e) nixos/test-driver: Allow interactive testing on Wayland-only setups
- [6a03a62a](6a03a62af4) opera: 68.0.3618.36 → 76.0.4017.94
- [957b7a47](957b7a476e) nixos/tests/sway: init
- [9852cdd0](9852cdd02d) abcmidi: 2021.03.30 -> 2021.04.26
- [5b42a1d7](5b42a1d798) transcribe: (re)init at 9.00 ([NixOS/nixpkgs⁠#121617](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121617))
- [9b5a84f8](9b5a84f8ac) mill: 0.9.5 -> 0.9.6 ([NixOS/nixpkgs⁠#121712](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121712))
- [10dfec31](10dfec31b6) pythonPackages.nbxmpp: 1.0.2 -> 2.0.2
- [67fcceae](67fcceae09) gajim: 1.2.2 -> 1.3.2
- [42a024f1](42a024f149) xfce.xfce4-clipman-plugin: 1.6.1 -> 1.6.2
- [fdf6bb5b](fdf6bb5b95) Revert "nixos/keycloak: use db username in db init scripts"
- [deb58f64](deb58f6486) nixos/keycloak: Document how to use a custom local database
- [8f83860a](8f83860a0a) keycloak.tests: Make sure databaseUsername is either ignored...
- [e5c27f95](e5c27f95e0) syncthing: 1.15.1 -> 1.16.0
- [361f0ffe](361f0ffe00) thunderbird-bin: 78.10.0 -> 78.10.1
- [95e5066a](95e5066a69) thunderbird: 78.10.0 -> 78.10.1
- [bf8679ba](bf8679ba94) cagebreak: 1.6.0 -> 1.7.0
- [1c516ffb](1c516ffb3c) cagebreak: cosmetic rewrite
- [ded288a9](ded288a979) perlPackages.CryptArgon2: init at 0.010
- [05fb1b74](05fb1b74d6) perlPackages.CryptPassphrase: init at 0.003
- [c6104775](c6104775ae) perlPackages.CryptPassphraseArgon2: init at 0.002
- [1548f03a](1548f03a58) perlPackages.StringCompareConstantTime: init at 0.321
- [451477e7](451477e741) hydra-unstable: 2021-04-29 -> 2021-05-03
- [ac681c96](ac681c966a) chromiumDev: 92.0.4491.6 -> 92.0.4496.0
- [475abc47](475abc472b) mutt: 2.0.6 -> 2.0.7
- [f21a6d6c](f21a6d6c23) python3Packages.aiodiscover: 1.3.4 -> 1.4.0
- [8fa0db7b](8fa0db7b69) python3Packages.astropy-healpix: unbreak
- [df52f5af](df52f5afb1) python3Packages.radio_beam: unbreak
- [3a349a7a](3a349a7ad3) python3Packages.glymur: 0.8.18 -> 0.9.3
- [30534335](305343359b) python3Packages.sunpy: add missing dependency
- [96c4ebd5](96c4ebd542) python3Packages.spectral-cube: add patch for radio_beam >= 0.3.3
- [1a9fbc44](1a9fbc44e1) vscode-extensions.github.github-vscode-theme: 4.0.2 -> 4.1.1
- [a2ae5408](a2ae5408ef) picard: 2.5.6 -> 2.6.2
- [dcc21258](dcc2125848) pythonPackages.debugpy: 1.2.1 → 1.3.0
- [abc9c2e3](abc9c2e39b) dua: 2.11.1 -> 2.11.2, fix darwin build
- [1383d557](1383d5574b) sourcehut.buildsrht: 0.63.4 -> 0.66.7
- [fc5daae1](fc5daae1fa) sourcehut.todosrht: 0.62.1 -> 0.64.14
- [9b3a109c](9b3a109c3e) sourcehut.mansrht: 0.15.4 -> 0.15.12
- [14d65eaa](14d65eaa3c) sourcehut.metasrht: 0.51.2 -> 0.53.14
- [1dbd9b24](1dbd9b2476) sourcehut.dispatchsrht: 0.14.9 -> 0.15.8
- [350f4867](350f4867c7) sourcehut.pastesrht: 0.11.2 -> 0.12.1
- [9636d25a](9636d25a6c) sourcehut.listssrht: 0.45.15 -> 0.48.19
- [a8dec0e5](a8dec0e5e0) sourcehut.gitsrht: 0.61.10 -> 0.72.8
- [eec22cc4](eec22cc44c) sourcehut.hubsrht: 0.11.5 -> 0.13.1
- [c4dda181](c4dda181cf) sourcehut.scm: 0.22.4 -> 0.22.9
- [22c2b7a6](22c2b7a64d) sourcehut.hgsrht: 0.26.19 -> 0.27.4
- [1b802ce4](1b802ce414) sourcehut.coresrht: 0.65.2 -> 0.67.4
- [77e96995](77e969952e) sourcehut: refactor
- [7ae74ab5](7ae74ab5cc) firefox-bin: 88.0 -> 88.0.1
- [5dff40a6](5dff40a628) agi: 1.1.0-dev-20210430 -> 1.1.0-dev-20210504
- [0a377f11](0a377f11a5) nixos/treewide: Remove usages of deprecated types.string
- [bd5046ed](bd5046edea) firefox: 88.0 -> 88.0.1
- [d6229c7f](d6229c7f5f) firefox-esr: 78.10.0esr -> 78.10.1esr
- [3636fe2a](3636fe2ad1) oil: 0.8.8 -> 0.8.10
- [e4939c80](e4939c803b) ginkgo: 1.16.1 -> 1.16.2
- [4901ca4f](4901ca4ff5) lxc: 4.0.8 -> 4.0.9
- [887aae03](887aae03b2) kbs2: fix build on darwin
- [9bb53244](9bb5324418) cargo-watch: fix build on darwin
- [ca413d96](ca413d96d5) himalaya: 0.3.0 -> 0.3.1
- [017787f0](017787f0f4) cloud-nuke: 0.1.29 -> 0.1.30
- [59cd52dc](59cd52dc40) gmsh: 4.8.3 -> 4.8.4
- [a913f3ff](a913f3ff49) nixos/tests/wmderland: remove stdenv.lib
- [c7b7ae48](c7b7ae485d) python3Packages.zigpy-znp: 0.4.0 -> 0.5.1
- [2172439f](2172439ffa) gxkb: 0.9.1 -> 0.9.2
- [fdd96712](fdd9671234) knot-resolver: 5.3.1 -> 5.3.2
- [fed7086f](fed7086f21) knot-resolver: clean the expression a bit
- [b8c3423c](b8c3423ce9) fuzzel: 1.5.3 -> 1.5.4
- [1c5c5be2](1c5c5be21b) php.packages.deployer: init at 6.8.0
- [f7f1d7e0](f7f1d7e0e1) free42: 3.0.2 -> 3.0.3
- [406fddaa](406fddaa22) calibre-web: fix build ([NixOS/nixpkgs⁠#121796](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121796))
- [69e7e438](69e7e4386f) igraph: 0.9.2 -> 0.9.3
- [9ba09d80](9ba09d80e1) conan: unbreak by downgrading pyjwt ([NixOS/nixpkgs⁠#121802](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121802))
- [ceb01fb1](ceb01fb12d) python3Packages.cartopy: 0.18.0 -> 0.19.0.post1 ([NixOS/nixpkgs⁠#121782](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121782))
- [e349b779](e349b77943) neovim: set g:loaded_python_provider = 0
- [e7412dde](e7412dde1f) Revert "lib/tests: Add type deprecation tests"
- [a36e6760](a36e6760e9) Revert "lib/modules: Issue type deprecation warnings recursively"
- [de5b4506](de5b4506ed) frugal: 3.14.3 -> 3.14.4
- [1021cd5d](1021cd5d6c) dysnomia: 0.10 -> 0.10.1 and add support for new plugins
- [811e18ab](811e18ab73) disnix: 0.10 -> 0.10.1 and remove obsolete parameters
- [da6a769a](da6a769a92) disnixos: 0.9 -> 0.9.1
- [810c9c6a](810c9c6a0e) lib/modules: provide error message when imports contains a list
- [aab00407](aab004076b) python3Packages.httpcore: 0.12.3 -> 0.13.0
- [4100bb83](4100bb837a) python3Packages.httpx: 0.17.1 -> 0.18.0
- [8456c41c](8456c41c67) python3Packages.elmax: 0.1.1 -> 0.1.2
- [2abb528a](2abb528ac5) python3Packages.aniso8601: 8.1.1 -> 9.0.1
- [0441e9c9](0441e9c9d4) python3Packages.respx: 0.16.3 -> 0.17.0
- [e2a49cea](e2a49ceaab) python3Packages.pytest-httpx: 0.11.0 -> 0.12.0
- [5e03f199](5e03f19981) python3Packages.aiobotocore: 1.2.2 -> 1.3.0
- [14971b1a](14971b1a5f) DisnixWebService: 0.10 -> 0.10.1
- [9f120c34](9f120c34e6) dydisnix: 2020-07-04 -> 2020-11-02
- [dc34664c](dc34664cff) _1password: 1.8.0 -> 1.9.1
- [36d95ca9](36d95ca9c9) python3Packages.discordpy: 1.7.1 -> 1.7.2
- [2839557f](2839557ff8) python3Packages.pykmtronic: 0.0.3 -> 0.3.0
- [ddcd4ddc](ddcd4ddc2c) qemu_full: add glusterfs support
- [f2335629](f233562967) evcxr: 0.8.1 -> 0.9.0
- [1bdda029](1bdda029cd) nixos/services/torrent/transmission.nix: add a missing apparmor rule
- [063e8ee5](063e8ee5cf) libvirt: add enableGlusterfs option
- [db374382](db37438260) python3Packages.sanic-testing: relax httpcore, httpx pins
- [dea3a011](dea3a01153) vscode-extensions.hashicorp.terraform: 2.10.1 -> 2.10.2
- [82f4538e](82f4538ebd) prometheus-wireguard-exporter: 3.4.2 -> 3.5.0
- [8253affd](8253affdce) ucx: 1.9.0 -> 1.10.0
- [47235d6d](47235d6d1a) python3Packages.PyRMVTransport: disable failing test
- [a7b3087f](a7b3087f75) moonlight-embedded: build with ffmpeg 4
- [a1a312b4](a1a312b400) stix-two: 2.12 -> 2.13
- [1374bfa2](1374bfa2d3) sqlx-cli: fix darwin build
- [fbf1c83c](fbf1c83c0b) anydesk: 6.1.0 -> 6.1.1
- [a4026fb9](a4026fb952) perceptualdiff: fix darwin support ([NixOS/nixpkgs⁠#121646](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/121646))
- [f8c104d1](f8c104d116) openethereum: 3.2.4 -> 3.2.5
- [b334d0dc](b334d0dc2b) go-ethereum: 1.10.2 -> 1.10.3
2021-05-07 11:33:58 +02: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-03-12 10:53:18 +01: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%