github-actions[bot] a6e1523d19 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 8e8b5f3b -> bcb6dbbe (#346)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 8e8b5f3b1e...bcb6dbbe30

- [f1f741c8](f1f741c80a) cargo-zigbuild: 0.14.1 -> 0.14.2
- [232ffa26](232ffa264c) python310Packages.growattserver: 1.2.4 -> 1.3.0
- [1853c7df](1853c7df0f) ocamlPackages.calendar: 2.5 → 3.0
- [1b68f3a0](1b68f3a0dd) pkgsMusl.jfsutils: fix build ([NixOS/nixpkgs⁠#203250](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203250))
- [c55d02f4](c55d02f41b) pkgsMusl.bridge-utils: fix build ([NixOS/nixpkgs⁠#203256](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203256))
- [01932120](01932120ab) nixos/netbox: set path of dynamic content
- [31f1a9a2](31f1a9a2a9) nixos/netbox: fix ldap configuration
- [2690f30f](2690f30fd3) rke: init at 1.4.1
- [ed4a7faf](ed4a7faf43) chromiumBeta: 108.0.5359.48 -> 108.0.5359.71 ([NixOS/nixpkgs⁠#203681](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203681))
- [3609aedb](3609aedb1e) chromium: 107.0.5304.121 -> 108.0.5359.71
- [79716f55](79716f55b9) maintainers/team-list: add geospatial team
- [f1b9cc23](f1b9cc23aa) Release NixOS 22.11
- [ccd9ac9f](ccd9ac9ff4) mailspring: 1.10.5 -> 1.10.7
- [807c2f1f](807c2f1fc0) nixosTests.freenet: init
- [eded5ed9](eded5ed94e) reaper: provide libxdo for ReaLearn 2.14
- [b232557c](b232557c45) zathura: 0.4.9 -> 0.5.2
- [08039e6b](08039e6bc3) libkrunfw: 3.3.0 -> 3.8.0
- [22904028](229040285c) libkrun: 1.3.0 -> 1.4.6
- [fa612561](fa61256115) krunvm: 0.2.1 -> 0.2.2
- [cee9caa1](cee9caa1cc) libkrunfw: remove aarch64-linux from platforms
- [8f43b9c3](8f43b9c3eb) libkrunfw: 3.8.0 -> 3.8.1
- [622f4ee3](622f4ee354) php8*: disable PCRE2 JIT SEAlloc to avoid crashes when forking
- [c2d4859f](c2d4859ff4) kanata: 1.0.8 -> 1.1.0
- [31065b01](31065b01c6) libkrun: 1.4.6 -> 1.4.8
- [dfc876b5](dfc876b50d) krunvm: 0.2.2 -> 0.2.3
- [51a7e74e](51a7e74ed8) func: init at 1.7.0
- [984af38f](984af38f4b) maintainers: add maxwell-lt
- [2baf181c](2baf181c61) wakatime: 1.57.0 -> 1.60.1
- [621d700d](621d700d38) wapm-cli: 0.5.5 -> 0.5.9
- [fbcdadcb](fbcdadcb92) wasmer: 3.0.1 -> 3.0.2
- [248a982a](248a982a86) gimp: remove ? null from inputs
- [e99fa4a0](e99fa4a086) yq-go: 4.30.4 -> 4.30.5
- [1beb3948](1beb3948ae) rke: exclude codegen binary
- [96a8f390](96a8f39019) python310Packages.manimpango: 0.4.2 -> 0.4.3
- [ecf7441d](ecf7441d25) nixos/lxc: apply recommendations from distrobuilder
- [9454b54e](9454b54ed2) wlprop: init at unstable-2022-08-18
- [72fad627](72fad62739) glab: 1.22.0 -> 1.23.0, switch to new upstream ([NixOS/nixpkgs⁠#203337](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203337))
- [d28784e5](d28784e5d3) gotrue-supabase: init at 2.35.0
- [b0f767da](b0f767da93) vimpc: Support more platforms
- [07fe1b98](07fe1b987b) nixos/doc/rl-2211: cleanup
- [5cb30bdd](5cb30bdd97) wesher: init at 0.2.6
- [a7e188a8](a7e188a80f) gnostic: init at 0.6.8
- [676f772d](676f772dc6) fluent-icon-theme: 2022-11-05 -> 2022-11-30
- [53b811ea](53b811ea51) appthreat-depscan: 3.2.1 -> 3.2.3
- [62077200](6207720058) argocd: 2.5.2 -> 2.5.3
- [7c7c4322](7c7c43225d) jellyfin-web: 10.8.7 -> 10.8.8
- [7690adfd](7690adfd16) python310Packages.meshtastic: 2.0.4 -> 2.0.5
- [994deb2b](994deb2bf1) cc-wrapper: fix path to libcxx includes for cross compilers
- [d797db23](d797db230d) neovim: rename wrapper
- [1f507b87](1f507b8797) jellyfin: 10.8.7 -> 10.8.8
- [068f7348](068f7348db) nixos/doc/rl-2211: more cleanup
- [6184f635](6184f635b3) nixos/doc: Fix typo in 22.11 release manual
- [29450f5d](29450f5d80) nixos/release-notes: fix link formatting
- [825ecc21](825ecc2150) signalbackup-tools: 20221128 -> 20221130
- [c4e46d95](c4e46d958c) steamos-devkit: init at 0.20221101
- [56420d04](56420d0469) automatic-timezoned: 1.0.43 -> 1.0.45
- [8ede52a7](8ede52a7c1) emacs: change substituteInPlace invocation to an aligning patch
- [3f20add2](3f20add24f) crowdsec: init at 1.4.2
- [263371e1](263371e168) hachoir: 3.1.3 -> 3.2.0
- [3b5b92f3](3b5b92f388) python310Packages.hachoir: add changelog to meta
- [bf00facf](bf00facf84) python310Packages.fakeredis: add changelog to meta
- [1058ead1](1058ead1d8) mill: jre 8 -> nix default version
- [71d886e6](71d886e681) python310Packages.aioaladdinconnect: add changelog to meta
- [2f075e8a](2f075e8a19) checkSSLCert: add changelog to meta
- [bb1819d7](bb1819d739) python310Packages.growattserver: add changelog to meta
- [3b1c417a](3b1c417a3f) racket: mark as unbroken on darwin
- [47aefa51](47aefa51cc) mujs: 1.2.0 -> 1.3.2
- [f04260b0](f04260b00d) brev-cli: 0.6.181 -> 0.6.184
- [fe39068e](fe39068e04) dbeaver: fix build (jdk → jdk17)
- [06d158f9](06d158f987) cargo-lambda: 0.12.0 -> 0.13.0
- [3b416f39](3b416f390f) cargo-release: 0.23.1 -> 0.24.0
- [54fc152b](54fc152bfe) cilium-cli: 0.12.9 -> 0.12.10
- [e371f835](e371f83543) terraform: 1.3.5 -> 1.3.6
- [abe29263](abe292637f) consul: 1.14.1 -> 1.14.2
- [a872be63](a872be639d) vault-bin: 1.12.0 -> 1.12.2
- [7e5ca778](7e5ca77871) vault: 1.12.1 -> 1.12.2
- [c0ad2345](c0ad23454d) cirrus-cli: 0.91.0 -> 0.92.0
- [50074d32](50074d328a) nfpm: 2.22.1 -> 2.22.2
- [3e52056b](3e52056bb3) docker: fix darwin build
- [98156284](98156284c2) undocker: init at 1.0.3
- [64d0d965](64d0d965d3) cargo-lambda: avoid impurity
- [e104b257](e104b257da) topgrade: 10.2.0 -> 10.2.1
- [ffd251ae](ffd251aec3) skeema: 1.8.2 -> 1.9.0
- [29db827e](29db827ea5) all-packages.nix: reorder git-and-tools expressions
- [275025ce](275025ce4f) prometheus-node-exporter: 1.4.0 -> 1.5.0 ([NixOS/nixpkgs⁠#203758](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203758))
- [86377687](8637768751) clusterctl: 1.2.6 -> 1.2.7
- [0ad82d4d](0ad82d4d52) v2ray-domain-list-community: 20220921050909 -> 20221130032508
- [0f17b394](0f17b394ab) roon-server: 2.0-1148 -> 2.0-1169
- [01db863c](01db863cef) diffsitter: 0.7.1 -> 0.7.2
- [0f418c4b](0f418c4b87) do-agent: 3.14.1 -> 3.15.1
- [17533e40](17533e40a4) eget: 1.3.0 -> 1.3.1
- [a355f181](a355f18159) eksctl: 0.121.0 -> 0.122.0
- [6d268aa7](6d268aa75b) python310Packages.p1monitor: 2.1.1 -> 2.2.0
- [6ef6b68c](6ef6b68c8e) python310Packages.aiohomekit: 2.3.1 -> 2.3.3
- [aa64219c](aa64219c89) python310Packages.faraday-agent-parameters-types: add changelog to meta
- [000c92e4](000c92e412) python310Packages.faraday-agent-parameters-types: 1.1.0 -> 1.2.0
- [02b00498](02b00498cb) python310Packages.faraday-plugins: 1.8.0 -> 1.8.1
- [d420e866](d420e8666f) python310Packages.p1monitor: add changelog to meta
- [404fa921](404fa921bf) python310Packages.patiencediff: 0.2.8 -> 0.2.9
- [a77da404](a77da40458) python310Packages.hahomematic: add changelog to meta
- [2c391710](2c39171005) python310Packages.hahomematic: 2022.11.2 -> 2022.12.0
- [d8535833](d853583391) python310Packages.homematicip: 1.0.10 -> 1.0.12
- [96a4ece1](96a4ece145) python310Packages.peaqevcore: 8.2.0 -> 9.0.1
- [d4db6421](d4db6421db) python310Packages.pyunifiprotect: 4.4.2 -> 4.5.1
- [2875fd52](2875fd523f) xterm: drop redundant '# #' comment
- [d45a8a05](d45a8a0586) fuse-overlayfs: 1.9 -> 1.10
- [083a6cfa](083a6cfa96) poetry2nix: 1.36.0 -> 1.37.0
- [4e42a0ba](4e42a0ba0f) esphome: 2022.11.3 -> 2022.11.4
- [6060f126](6060f1268c) clusterctl: 1.2.7 -> 1.3.0
- [bcb6dbbe](bcb6dbbe30) manylinux: use libxcrypt for libcrypt.so.1

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-02 01:32:10 +00:00
2022-10-25 21:32:25 +01:00
2022-11-05 12:15:22 -03: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 MIT 3.3 MiB
Languages
Nix 64.3%
Emacs Lisp 35.7%