github-actions[bot] 8041067ae9 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 1c6eb487 -> a704b902 (#330)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 1c6eb4876f...a704b90295

- [9374e695](9374e695b9) memray: 1.3.1 -> 1.4.0
- [84ffd005](84ffd00595) libreddit: 0.22.9 -> 0.23.1
- [5eee2c72](5eee2c72a0) python310Packages.miniaudio: 1.52 -> 1.53
- [c0f65ad0](c0f65ad021) jellyfin-web: 10.8.6 -> 10.8.7
- [5bd89ea4](5bd89ea48b) python310Packages.types-pytz: 2022.5.0.0 -> 2022.6.0.1
- [1ce7100c](1ce7100c4f) python310Packages.readme_renderer: 37.2 -> 37.3
- [c9a4c000](c9a4c00021) python310Packages.moku: 2.4 -> 2.5.1
- [73f8432f](73f8432f14) jellyfin: 10.8.6 -> 10.8.7
- [37c2766e](37c2766e1e) konf: 0.4.0 -> 0.5.1
- [6110cca5](6110cca56f) python310Packages.casbin: 1.17.2 -> 1.17.3
- [ef2f213d](ef2f213d96) tbls: 1.56.5 -> 1.56.6
- [4655c358](4655c35887) credslayer: mark as broken
- [86905139](86905139ba) python310Packages.aesara: 2.8.1 -> 2.8.4
- [8b054c62](8b054c62e7) trivy: 0.33.0 -> 0.34.0
- [ab8f86d7](ab8f86d73f) various: add bobby285271 as maintainer ([NixOS/nixpkgs⁠#198911](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/198911))
- [a089f798](a089f79823) mariadb_107: drop ahead of 22.11 release
- [9ae430af](9ae430af84) vengi-tools: 0.0.21 -> 0.0.22
- [f627f3a2](f627f3a2b5) skypeforlinux: remove nix store path references in desktop files
- [172ec47d](172ec47d51) fava: 1.23 -> 1.23.1
- [79af3041](79af3041e6) python310Packages.aeppl: 0.0.35 -> 0.0.38
- [83d02e23](83d02e230f) linux_xanmod_stable: point to latest
- [1dfb8fb7](1dfb8fb7a9) python310Packages.python-lsp-server: switch to optional-dependencies
- [ba15914b](ba15914be7) v4l2loopback: unstable-2021-07-13 -> unstable-2022-08-05
- [79af9f0a](79af9f0ac2) python310Packages.python-lsp-server: adjust postPatch
- [ddcd07f4](ddcd07f4a8) pianobooster: 0.7.2b -> 1.0.0 ([NixOS/nixpkgs⁠#197900](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/197900))
- [57b57170](57b57170f4) synergy: fix build on aarch64-darwin
- [8ff7e7e6](8ff7e7e644) gopls: 0.9.5 -> 0.10.0
- [c77f59d1](c77f59d15b) prismlauncher: 5.0 -> 5.1
- [20c2edde](20c2edde84) libreddit: update repository location
- [ede62425](ede624253e) stunnel: 5.65 -> 5.66
- [d6a2e039](d6a2e039bb) python310Packages.demetriek: init at 0.4.0
- [c92bfb0b](c92bfb0b01) home-assistant: update component-packages
- [10fa88a7](10fa88a710) yq-go: 4.29.1 -> 4.29.2
- [3357d39d](3357d39dc0) plantuml: 1.2022.10 -> 1.2022.12
- [e0cec52d](e0cec52d57) haskell.packages.ghcjs.stm: 2.5.0.2 -> stm 2.5.1.0
- [d34a0432](d34a0432ac) python310Packages.pylsp-mypy: add missing input
- [86e9b3ef](86e9b3ef8a) python310Packages.spyder: update inputs
- [34e17488](34e17488ab) unciv: 4.2.13 -> 4.2.16
- [48adf8f8](48adf8f8d1) nixos/tests/dolibarr: add to all-tests
- [d3ac9817](d3ac9817b3) act: 0.2.32 -> 0.2.33
- [48bb2837](48bb283712) ansible-lint: 6.8.2 -> 6.8.5
- [277bd868](277bd868d9) python310Packages.pytest-doctestplus: 0.11.2 -> 0.12.1
- [3f4650ef](3f4650ef90) yq-go: 4.29.1 -> 4.29.2
- [c826d782](c826d7826d) python310Packages.pynndescent: 0.5.7 -> 0.5.8
- [cd0a368e](cd0a368e08) yutto: move to all-packages and 2.0.0b15 -> 2.0.0b16
- [739857a0](739857a03e) autotiling: 1.7 -> 1.8
- [9f252b31](9f252b319e) musikcube: 0.98.0 -> 0.98.1
- [8a837a95](8a837a95ed) crimson-pro: init at unstable-2022-08-30
- [06c9d4d9](06c9d4d95c) gym: 0.21.0 -> 0.26.2
- [cce5b627](cce5b62739) linuxKernel.kernels.linux_testing: 6.0-rc5 -> 6.1-rc3
- [e5ff8113](e5ff8113fb) python310Packages.hstspreload: 2022.10.1 -> 2022.11.1
- [481fe3f8](481fe3f8e7) python310Packages.duo-client: 4.4.0 -> 4.5.0
- [6739decb](6739decba3) cppcheck: fix broken hash
- [d2422216](d242221640) temporalite: init at 0.2.0
- [ee2353c8](ee2353c8bf) papirus-icon-theme: 20220910 -> 20221101
- [dd4481ec](dd4481ec9f) cargo-deny: 0.13.1 -> 0.13.2
- [4689b87f](4689b87f78) python310Packages.arviz: 0.12.1 -> 0.13.0
- [4f2d34ad](4f2d34ad52) python310Packages.pymc: 4.1.3 -> 4.3.0
- [da20b081](da20b0814d) python310Packages.cma: limit tests
- [991a5ca4](991a5ca464) lnd: 0.15.2-beta -> 0.15.4-beta
- [d7788c73](d7788c7303) miniupnpc_1: drop
- [fc13f439](fc13f439c3) python310Packages.meshtastic: 1.3.44 -> 2.0.1
- [4ca82611](4ca8261132) nixos/vmware-guest: depend headless option on xserver availability
- [c79ecc1b](c79ecc1b3a) sbt: 1.7.2 -> 1.7.3 ([NixOS/nixpkgs⁠#198879](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/198879))
- [f7ef7230](f7ef72305d) librewolf: 106.0.1-1 -> 106.0.3-1
- [7f372dbb](7f372dbb8f) cloud-nuke: 0.20.0 -> 0.21.0
- [b5113363](b5113363f4) dendrite: 0.10.4 -> 0.10.5
- [b4f201f0](b4f201f0d4) python3Packages.dask-gateway: add setuptools as native build input
- [37dc9497](37dc9497d7) python310Packages.python-box: 6.0.2 -> 6.1.0
- [409cff67](409cff67c3) flexoptix-app: 5.12.2 -> 5.13.0
- [a6e8bd09](a6e8bd09f3) invoiceplane: 1.5.11 -> 1.6-beta-1
- [dc595f1a](dc595f1a6b) python3Packages.rpyc: disable checks on darwin
- [a5a7a417](a5a7a417e6) python3Packages.pwntools: don't wrap gdb on darwin
- [4fe3556c](4fe3556c48) python310Packages.ansible-compat: remove myself from maintainers
- [372f7f4e](372f7f4edd) python310Packages.qcelemental: 0.25.0 -> 0.25.1
- [99401a0e](99401a0e30) python310Packages.regenmaschine: 2022.10.0 -> 2022.10.1
- [009822ff](009822ffe8) flyctl: 0.0.425 -> 0.0.426
- [6b6c5542](6b6c55425b) python310Packages.siobrultech-protocols: 0.6.0 -> 0.7.0
- [8e9ec875](8e9ec87563) fd: 8.4.0 -> 8.5.0
- [527fd33c](527fd33cc9) vimPlugins: update
- [fbc52015](fbc52015b6) vimPlugins: add tridactyl/vim-tridactyl
- [8f6a2a16](8f6a2a16b0) nsz: init at 4.1.0
- [50fa1983](50fa198362) hydra_unstable: 2022-09-08 -> 2022-10-22
- [8e7b785d](8e7b785d5e) httm: 0.15.8 -> 0.16.5
- [4f4a63cb](4f4a63cbf8) python310Packages.asdf: allow later jsonschema releases
- [7902df29](7902df29a8) iperf: 3.11 -> 3.12
- [115f084d](115f084d45) argparse: fix build
- [0be64cb3](0be64cb323) feishu: fix autopatchelf missing libgcrypt
- [db08a1df](db08a1dfae) gmid: 1.8.4 -> 1.8.5
- [ce4f1ac8](ce4f1ac8b8) pip-audit: 2.4.4 -> 2.4.5
- [cf2685d0](cf2685d09c) python310Packages.archinfo: 9.2.24 -> 9.2.25
- [8f9de886](8f9de88652) python310Packages.ailment: 9.2.24 -> 9.2.25
- [39882815](39882815a9) python310Packages.pyvex: 9.2.24 -> 9.2.25
- [0f48cfa9](0f48cfa908) python310Packages.claripy: 9.2.24 -> 9.2.25
- [e54ae8ca](e54ae8cae8) python310Packages.cle: 9.2.24 -> 9.2.25
- [d68593be](d68593bef6) python310Packages.angr: 9.2.24 -> 9.2.25
- [667df782](667df782df) python310Packages.twilio: 7.15.0 -> 7.15.1
- [aee30a88](aee30a8801) python310Packages.parsel: 1.6.0 -> 1.7.0
- [13fdc761](13fdc761fb) python310Packages.flipr-api: 1.4.2 -> 1.4.3
- [34685273](3468527373) python310Packages.sqlmap: 1.6.10 -> 1.6.11
- [b89bcd15](b89bcd15f9) python310Packages.pynndescent: add input
- [e88df671](e88df671f2) python310Packages.authlib: 1.0.1 -> 1.1.0
- [d3e16830](d3e16830b2) apfel: fix build on aarch64-darwin
- [744758b2](744758b2aa) python310Packages.transformers: 4.23.1 -> 4.24.0
- [664edda5](664edda544) sourcehut: fix [NixOS/nixpkgs⁠#198478](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/198478)
- [875723f3](875723f3c1) sourcehut: clean formatting
- [511be9e2](511be9e225) sourcehut: fix pagessrht
- [e1930cf9](e1930cf933) nixos/sourcehut: removing myself from maintainers
- [608eb68f](608eb68fd8) sourcehut.hubsrht: fix missing pyyaml dependency
- [b0ae739c](b0ae739c9d) sourcehut.buildsrht: 0.82.8 -> 0.83.0
- [4e789b92](4e789b928b) netbird: 0.10.2 -> 0.10.3
- [fdd9ddb3](fdd9ddb34c) jruby: 9.3.8.0 -> 9.3.9.0
- [d17013ea](d17013ea9e) blightmud: 4.0.0 -> 5.0.0
- [f59df406](f59df4069f) cargo-audit: 0.17.2 -> 0.17.3
- [d38afed3](d38afed36a) agola: init at 0.7.0
- [0fcbe58a](0fcbe58a19) cargo-zigbuild: 0.14.0 -> 0.14.1
- [d28249cf](d28249cfd2) rapidfuzz-cpp: fix build on aarch64-darwin
- [9a45d921](9a45d921be) ruff: 0.0.93 -> 0.0.94
- [7c665a85](7c665a85b9) python310Packages.yappi: 1.3.6 -> 1.4.0
- [5872c135](5872c13565) python3Packages.cryptg: 0.3.1 -> 0.4
- [e9c3f01c](e9c3f01cd4) terraform-providers.cloudflare: 3.26.0 → 3.27.0
- [b3bacada](b3bacada0a) terraform-providers.ksyun: 1.3.55 → 1.3.56
- [df775980](df77598045) terraform-providers.baiducloud: 1.16.2 -> 1.16.3
- [36ed4b09](36ed4b0917) terraform-providers.lxd: 1.7.2 -> 1.7.3
- [ac8aebad](ac8aebad00) sqlfluff: 1.4.0 -> 1.4.1
- [951f81c0](951f81c0cc) nixos/systemd-unit-options: document correct wantedBy default for user units ([NixOS/nixpkgs⁠#199007](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/199007))
- [b0664a02](b0664a021e) python310Packages.cryptg: disable on older Python releases
- [53c55a9f](53c55a9ff4) python310Packages.hypothesis-auto: fix validation issue
- [5f428e41](5f428e4188) python310Packages.peaqevcore: 7.0.13 -> 7.1.9
- [56cd38ad](56cd38ade3) python310Packages.teslajsonpy: 3.0.0 -> 3.1.0
- [428f22c3](428f22c359) gopls: 0.10.0 -> 0.10.1 ([NixOS/nixpkgs⁠#199050](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/199050))
- [a4f6258b](a4f6258b19) python310Packages.fastapi: 0.85.1 -> 0.85.2

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-04 02:03:26 +00:00
2022-10-25 21:32:25 +01:00
2022-10-23 19:13:03 +00: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%