### Changes for nixpkgs On branch: nixpkgs-unstable Commits:21264a9367...cd0ffd3f5f
- [14b5ddf0](14b5ddf085
) haxe_4_1,haxe_4_2: fix build on Darwin - [8716479e](8716479e0e
) python3Packages.msldap: 0.3.28 -> 0.3.29 - [ab703244](ab70324469
) mpvScritps.convert: mark as broken - [783ffb27](783ffb27ce
) ldeep: 1.0.10 -> 1.0.11 - [da711cec](da711cec88
) sish: init at 1.1.5 - [765296d9](765296d96f
) nix-update: 0.3.2 -> 0.4.0 - [ae79547c](ae79547cf2
) asterisk: 13.38.0 -> 13.38.2, 16.15.0 -> 16.17.0, 17.9.0 -> 17.9.3, 18.1.0 -> 18.3.0 - [4f8cfd1c](4f8cfd1c2e
) asterisk: clarify license - [444ea090](444ea090da
) honeytrap: init at unstable-2020-12-10 - [72efc3be](72efc3be00
) zoekt: init at unstable-2021-03-17 - [c1290dae](c1290daeaa
) sqlitecpp: init 3.1.1 - [3f2b84a7](3f2b84a754
) manix: 0.6.2 -> 0.6.3 ([NixOS/nixpkgs#119912](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119912)) - [431db0ea](431db0eaad
) git-interactive-rebase-tool: 2.0.0 -> 2.1.0 - [5bc29623](5bc2962319
) remake: 4.1 -> 4.3 ([NixOS/nixpkgs#119737](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119737)) - [f9f05c1e](f9f05c1e92
) SDL2: fix cross-compile to windows (mingw) - [e322cff6](e322cff6ac
) maintainers: add zane - [951704af](951704afaf
) libconfig: fix cross-compile to windows - [21ab9be4](21ab9be498
) openrussian-cli: init at 1.0.0 - [e9cf66e0](e9cf66e042
) configuration template: improve docs on nano - [314da8ce](314da8ce3d
) xplr: init at 0.5.4 - [20c9bed8](20c9bed8b7
) polybar: 3.5.2 -> 3.5.5 - [b9e04c75](b9e04c759e
) polybar: remove unnecessary asserts - [c15541a2](c15541a27c
) dropwatch. 1.5.1 -> 1.5.3 ([NixOS/nixpkgs#119989](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119989)) - [b94923b0](b94923b0d9
) rubyPackages: update - [045a4797](045a4797bd
) python3Packages.pytube: 10.7.1 -> 10.7.2 - [1070ddba](1070ddbae4
) python3Packages.karton-dashboard: init at 1.1.0 - [433e28d7](433e28d7c8
) jellyfin-media-player: clarify GPL license - [9fab849f](9fab849fa8
) python3Packages.jellyfin-apiclient-python: clarify GPL license - [37c62a07](37c62a07d2
) python3Packages.pystray: clarify GPL license - [22a2c39a](22a2c39a74
) cosign: 0.3.0 -> 0.3.1 - [5cb6f477](5cb6f477f4
) k3s: 1.20.5+k3s1 -> 1.20.6+k3s1 - [50a7cb2c](50a7cb2cfb
) zoom-us 5.6.13632.0328 -> 5.6.16775.0418 - [59522944](59522944d0
) deno: 1.9.0 -> 1.9.1 - [84080556](840805562b
) linuxPackages.rtw88: 2021-04-01 -> 2021-04-19 - [04991f2e](04991f2ec8
) python3Packages.hachoir: init at 3.1.2 - [5a304b17](5a304b17ed
) cosign: use buildFlagsArray - [20759ed9](20759ed994
) radare2: 5.1.1 -> 5.2.0 - [436161a2](436161a2b8
) Update .github/workflows/direct-push.yml - [7e1aee2a](7e1aee2aa4
) python3Packages.ppdeep: init at 20200505 - [3121998f](3121998f6b
) dnstwist: init at 20201228 - [9b978283](9b9782834d
) gitlab-runner: 13.10.0 -> 13.11.0 - [7745b7a9](7745b7a9d1
) isgx: fix support for 5.11 - [b3abdc95](b3abdc9534
) tests.vim: init (moved from vim-utils.nix) ([NixOS/nixpkgs#119467](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119467)) - [1f1a77bd](1f1a77bdb7
) ocamlPackages.labltk: fix ocamlbrowser by wrapping - [7a89726e](7a89726eb0
) nextcloud-client: 3.1.3 -> 3.2.0 - [80f4cce6](80f4cce6fa
) chromiumDev: Fix the patch phase - [951e888c](951e888cbd
) chromiumBeta: 90.0.4430.72 -> 90.0.4430.85 - [a2dd59e0](a2dd59e0ff
) chromium: 90.0.4430.72 -> 90.0.4430.85 - [389395b0](389395b0af
) python3Packages.sagemaker: 2.35.0 -> 2.37.0 - [94514eec](94514eec55
) protoc-gen-twirp_php: 0.6.0 -> 0.7.1 - [bb82ab69](bb82ab69c4
) vimPlugins: update - [ebed7846](ebed784637
) vimPlugins.git-worktree-nvim: init at 2021-04-19 - [a9a31573](a9a31573e4
) phpPackages.composer: 2.0.11 -> 2.0.12 - [f36aca9e](f36aca9e82
) nnn: don't make supported tools a requirement - [5fc6ad33](5fc6ad33af
) waypoint: 0.3.0 -> 0.3.1 - [0a8784d5](0a8784d5db
) stdenv/{native,nix}: add lib to cc-wrapper args - [de048123](de048123a1
) badtouch: init at 0.7.3 - [b14062b7](b14062b75c
) zfsUnstable: 2.0.4 -> 2.1.0-rc3 - [9c39fef4](9c39fef460
) tor-browser-bundle-bin: 10.0.15 -> 10.0.16 - [689b7709](689b77097e
) qgis: 3.16.5 -> 3.16.6 - [d3059bff](d3059bfff3
) orchis: 2021-02-28 -> 2021-04-20 - [045febc9](045febc92d
) wprecon: init at 1.6.3a - [7b29dd9f](7b29dd9f75
) nvme-cli: 1.13 -> 1.14 - [c88a223e](c88a223e38
) nvme-cli: Remove myself as maintainer - [fd44ecd1](fd44ecd1d8
) fishPlugins.done: init at 1.16.1 - [d043a234](d043a23408
) python3.pkgs.kaitaistruct: add compression functionality - [e2efd87f](e2efd87f5e
) python3.pkgs.liblzfse: init at 0.4.1 - [fb580e73](fb580e732f
) metals: 0.10.1 -> 0.10.2 - [ff06494b](ff06494b48
) python3Packages.untokenize: init at 0.1.1 - [71ccdd24](71ccdd243f
) vapoursynth: R52 -> R53 - [3ff8a640](3ff8a6406e
) python3Packages.unify: init at 0.5 - [a24fb17c](a24fb17c96
) binwalk: init from python3Packages.binwalk - [36b6a703](36b6a70302
) unify: init from python3Packages.unify - [842d0a82](842d0a821c
) python3Packages.yeelight: 0.6.0 -> 0.6.1 - [5ff547e7](5ff547e729
) nixos/ipfs: fix typo in comment - [e205a480](e205a4800f
) nixos/cpu-freq: fix typo in description - [fb8c5275](fb8c527586
) ocamlPackages.irmin: 2.5.2 -> 2.5.3 - [21485c0d](21485c0d41
) python3Packages.faadelays: 0.0.6 -> 0.0.7 - [529eccea](529ecceaa6
) jenkins: 2.277.2 → 2.277.3 - [bde37653](bde376538e
) podman: 3.1.1 -> 3.1.2 - [d0b4feab](d0b4feab81
) python3Packages.pysonos: 0.0.40 -> 0.0.43 - [cf310211](cf3102118b
) cryptomator: 1.5.14 -> 1.5.15 - [6d44df98](6d44df9860
) python3Packages.hyperion-py: init at 0.7.4 - [eaeade4e](eaeade4e2c
) home-assistant: update component-packages - [c14b8f6f](c14b8f6fc0
) home-assistant: enable hyperion tests - [d0a90eb5](d0a90eb51a
) linuxPackages.isgx: limit to x86_64 - [e967fbf6](e967fbf6f7
) texmacs: 1.99.18 -> 1.99.19 - [5119a338](5119a3386c
) python3Packages.tailer: init at 0.4.1 - [af2ff60a](af2ff60af0
) python3Packages.dsmr-parser: init at 0.29 - [d4c673e8](d4c673e80a
) home-assistant: update component-packages - [811cde03](811cde0320
) home-assistant: enable dsmr tests - [b07b0dee](b07b0deed5
) nixpkgs-review: 2.5.0 -> 2.6.0 - [373ea9e2](373ea9e2df
) zeek: 4.0.0 -> 4.0.1 - [5cbd4618](5cbd461845
) nvme-cli: add mic92 as maintainer - [3238e9f2](3238e9f2e0
) amber: Fix build ([NixOS/nixpkgs#120126](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/120126)) - [3eb8f4d1](3eb8f4d15c
) update.py: allow to disable autocommit ([NixOS/nixpkgs#119182](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/119182)) - [897c8e69](897c8e6982
) mpg123: fix cross-compile to windows - [54d8941a](54d8941a0d
) esbuild: init at 0.11.12 ([NixOS/nixpkgs#120089](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/120089)) - [391c5fcb](391c5fcb5a
) anevicon: init at 0.1.0 ([NixOS/nixpkgs#120043](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/120043)) - [1147c815](1147c815df
) ace: 6.5.11 -> 7.0.1 - [e334f125](e334f12567
) stork: 1.1.0 -> 1.2.0 - [6b2d6a52](6b2d6a52ba
) slack: fix update script - [a489b556](a489b556de
) vscx/scalameta-metals: 1.9.13 -> 1.10.3 - [256740f5](256740f528
) vscx/scala-lang-scala: 0.5.1 -> 0.5.3 - [89524c34](89524c348a
) agi: 1.1.0-dev-20210413 -> 1.1.0-dev-20210421 - [d1930e09](d1930e09be
) alertmanager-irc-relay: 0.3.1 -> 0.4.1 - [a48b8974](a48b8974ee
) bit: 1.0.6 -> 1.1.1 - [a783aa81](a783aa8126
) hydrogen: fix the license - [81b1905c](81b1905c86
) radare2: 5.2.0 -> 5.2.1 - [005e3d1d](005e3d1db7
) python3Packages.imap-tools: 0.39.0 -> 0.40.0 - [4fad8345](4fad8345b2
) clair: 4.0.4 -> 4.0.5 - [1dfdf076](1dfdf07669
) linux_xanmod: 5.11.15 -> 5.11.16 - [7ff0ce48](7ff0ce48df
) cloud-nuke: 0.1.28 -> 0.1.29 - [87b91877](87b91877c6
) hex: 0.20.5 -> 0.21.1 ([NixOS/nixpkgs#118941](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/118941)) - [e54449ac](e54449ace8
) dnsx: 1.0.2 -> 1.0.3 - [1d86d9e3](1d86d9e37c
) deno: add libiconv as a darwin dependency - [dcbd1aa1](dcbd1aa1fa
) exoscale-cli: 1.27.2 -> 1.28.0 - [3e01d420](3e01d42024
) maintainers: remove tavyc - [e4bd03b9](e4bd03b915
) flow: 0.148.0 -> 0.149.0 - [ce5cbe4a](ce5cbe4abf
) tree-sitter: Update grammars - [7495ee4f](7495ee4f5f
) chromiumDev: 91.0.4472.10 -> 91.0.4472.19 - [e4851395](e485139541
) gotestsum: 1.6.3 -> 1.6.4 - [b846287a](b846287ad9
) grype: 0.9.0 -> 0.10.2 - [fc0a5b57](fc0a5b577e
) xinit: don't unset DBUS_SESSION_BUS_ADDRESS in startx - [3c17fe51](3c17fe5161
) python3Packages.brother: 0.2.2 -> 1.0.0 - [f29292db](f29292db76
) tree-sitter: Add withPlugins - [407e4481](407e448114
) gcc8,gcc9: fix ctypes on NetBSD - [9e400a8b](9e400a8b93
) nixos/users-groups: check format of passwd entries - [4d85aa1c](4d85aa1c23
) home-assistant: pin brother at 0.2.2 and enable brother tests - [795840b9](795840b9c3
) libxc: 5.1.2 -> 5.1.3
nix-doom-emacs
Status | |
---|---|
Build on master |
|
Build on develop |
|
Dependency updater |
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