github-actions[bot] 1a0cbbc421 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - bcb6dbbe -> 52665b05 (#348)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: bcb6dbbe30...52665b05cf

- [c1d77f67](c1d77f6754) offpunk: 1.6 -> 1.7.1
- [875d3974](875d397433) v2ray-geoip: 202211240054 -> 202212010055
- [fabbb53a](fabbb53a3e) vaultwarden-vault: 2022.6.2 -> 2022.11.1
- [08b713e0](08b713e044) ventoy-bin: 1.0.82 -> 1.0.84
- [aeeb1cfc](aeeb1cfc71) python310Packages.google-cloud-bigtable: 2.13.2 -> 2.14.0
- [61b4400f](61b4400f8f) python310Packages.google-cloud-logging: 3.3.0 -> 3.3.1
- [06c50df6](06c50df6fa) python310Packages.google-cloud-spanner: 3.23.0 -> 3.24.0
- [fc14c1bb](fc14c1bbb1) cardinal: 22.10 -> 22.11
- [c4c0129f](c4c0129ffc) python310Packages.aiosmb: add changelog to meta
- [313e1872](313e187226) python310Packages.asysocks: add changelog to meta
- [01f1aa21](01f1aa21dc) python310Packages.asysocks: 0.2.2 -> 0.2.3
- [01c1fbdd](01c1fbdd4b) python310Packages.aiosmb: 0.4.3 -> 0.4.4
- [f1a24aa9](f1a24aa93d) python310Packages.google-cloud-bigtable: add changelog to meta
- [e6e22995](e6e229954f) python310Packages.google-cloud-logging: add changelog to meta
- [fdca9d18](fdca9d18da) python310Packages.google-cloud-spanner: add changelog to meta
- [22dfc5ec](22dfc5ec5f) uncover: add changelog to meta
- [fa20c128](fa20c128e1) python310Packages.archinfo: 9.2.27 -> 9.2.28
- [e95ab739](e95ab7395e) python310Packages.ailment: 9.2.27 -> 9.2.28
- [23f53b39](23f53b396e) python310Packages.pyvex: 9.2.27 -> 9.2.28
- [7ef92520](7ef9252017) python310Packages.claripy: 9.2.27 -> 9.2.28
- [3ddb3271](3ddb3271f3) python310Packages.cle: 9.2.27 -> 9.2.28
- [0792e31a](0792e31a73) python310Packages.angr: 9.2.27 -> 9.2.28
- [7573f54a](7573f54a36) python310Packages.gsd: 2.6.1 -> 2.7.0
- [d0b51fac](d0b51fac32) python310Packages.gamble: add changelog to meta
- [55209c48](55209c4853) python310Packages.gamble: update disabled
- [8caf52a9](8caf52a9cc) python310Packages.furo: add changelog to meta
- [e498a1cd](e498a1cdf2) python310Packages.gspread: 5.7.1 -> 5.7.2
- [5d0a0016](5d0a001618) teler: add changelog to meta
- [244fbec4](244fbec48a) python310Packages.gsd: add changelog to meta
- [6e9cd89b](6e9cd89bee) python310Packages.gspread: add changelog to meta
- [9cc7f80d](9cc7f80dea) ocamlPackages.camlzip: 1.10 → 1.11
- [dee75cbd](dee75cbdd3) velero: 1.9.3 -> 1.10.0
- [83668bc0](83668bc0df) openafs: Fix incorrectly required and inverted withNcurses parameter
- [7f396d99](7f396d994c) lighthouse: 3.2.1 -> 3.3.0
- [2fb2d7c9](2fb2d7c9df) tdesktop: 4.4.0 -> 4.4.1
- [944f7c20](944f7c2057) kyverno: 1.8.2 -> 1.8.3
- [4c9129f5](4c9129f5a7) peering-manager: init at 1.7.3
- [56d4e1ec](56d4e1ec67) nixos/peering-manager: init
- [a0e88979](a0e889791f) nixos/tests/peering-manager: init
- [74afbb4c](74afbb4cd3) xplr: 0.20.0 -> 0.20.1
- [d72109ae](d72109ae9b) flexoptix-app: 5.13.0 -> 5.13.1 ([NixOS/nixpkgs⁠#203617](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/203617))
- [99b0a7d6](99b0a7d6ea) wasmtime: 3.0.0 -> 3.0.1
- [8ca4ef45](8ca4ef45c2) qcengine: 0.24.1 -> 0.26.0
- [d7cf24f2](d7cf24f2fa) php82: 8.2.0-rc7 -> 8.2.0
- [17adb474](17adb474a4) slurp: 1.3.2 -> 1.4.0
- [b2e02be3](b2e02be35b) d2: 0.0.13 -> 0.1.0
- [6d65b5e4](6d65b5e435) bazarr: replace unrar with unar
- [acb964a3](acb964a35c) nixos/tests/bazarr: remove unfree predicate for unrar
- [926afb6f](926afb6f1c) nixos/make-options-doc: pretty-print literals
- [56099e00](56099e008e) nixos/mastodon: allow appending other env files to serviceConfig.EnvironmentFile
- [c0a05be4](c0a05be4d4) maintainers/teams: add node
- [3564228a](3564228a10) nixos/make-options-doc: improve CommonMark formatting
- [0c88d9b7](0c88d9b773) erlang: Add escript to $PATH
- [70739abd](70739abd19) traefik: 2.9.5 -> 2.9.6
- [6dcc133a](6dcc133aae) cpython: Update meta and add changelog url
- [a0d4f8a1](a0d4f8a1ed) zk: 0.11.1 -> 0.12.0
- [5d8e07c8](5d8e07c835) doc: add hint about lib.fakeSha256 to go section ([NixOS/nixpkgs⁠#204132](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/204132))
- [b6466eae](b6466eae0a) go_1_18: 1.18.8 -> 1.18.9
- [7d04753e](7d04753e2f) doc/go: fix link
- [44c243b6](44c243b64f) vimPlugins: update
- [8c325240](8c325240d7) vimPlugins.nvim-treesitter: update grammars
- [fa1413e4](fa1413e4bc) vimPlugins.vim-utils: cleanup inputs
- [26cee9b6](26cee9b6b3) argocd: 2.5.3 -> 2.5.4
- [11f03af9](11f03af9e3) mpv: use meson* functions
- [bf6fdfc1](bf6fdfc15c) glab: 1.23.0 -> 1.24.1
- [11c344d8](11c344d864) audacity: 3.2.1 -> 3.2.2
- [b38c5c97](b38c5c97a9) python310Packages.knack: 0.10.0 -> 0.10.1
- [2b760397](2b760397bb) oxipng: 6.0.1 -> 7.0.0
- [05eb854b](05eb854be3) pulseaudio: mark patches as merged
- [a0ad9707](a0ad970782) _1password: 2.7.3 -> 2.9.1
- [9d262cab](9d262cabb1) cargo-update: 11.1.0 -> 11.1.1
- [61e4c901](61e4c9017f) castxml: 0.4.8 -> 0.5.0
- [efb623de](efb623debc) chromium: 108.0.5359.94 -> 108.0.5359.98
- [a1f5263a](a1f5263a86) imagemagick6: 6.9.12-26 -> 6.9.12-68
- [e7e65778](e7e6577895) ventoy-bin: fix egregious error on meta attributes
- [3e1ee689](3e1ee6897b) crowdsec: 1.4.2 -> 1.4.3
- [ad866e56](ad866e565d) treewide: switch to port type for nixos modules
- [31c798ef](31c798ef37) all-packages.nix: rename GitPython
- [5108c96e](5108c96e98) neovim: remove global with lib
- [0713d3a8](0713d3a8cc) python310Packages.ruuvitag-ble: init at 0.1.1
- [3807ffe1](3807ffe101) python310Packages.knack: add changelog to meta
- [c9fa130d](c9fa130d03) python310Packages.knack: add pythonImportsCheck
- [9878818a](9878818a2a) nuclei: add changelog to meta
- [7d897e85](7d897e855f) nuclei: 2.7.9 -> 2.8.1
- [876425db](876425dbed) python310Packages.aiohomekit: 2.3.5 -> 2.4.1
- [870af71b](870af71b88) python3Packages.aioshelly: 4.1.2 -> 5.1.0
- [4fe16e56](4fe16e5655) python310Packages.aioswitcher: 3.2.0 -> 3.2.1
- [46b2278e](46b2278ecb) python310Packages.aioswitcher: add changelog to meta
- [df151942](df15194267) python310Packages.aiounifi: 41 -> 42
- [83c479ed](83c479ed52) python3Packages.zigpy: 0.51.6 -> 0.52.3
- [c45eeaca](c45eeaca9a) python3Packages.zigpy-deconz: 0.19.1 -> 0.19.2
- [977807cf](977807cf47) python3Packages.zigpy-znp: 0.9.1 -> 0.9.2
- [2707868f](2707868f59) python3Packages.zha-quirks: 0.0.87 -> 0.0.88
- [3f5230c2](3f5230c22b) python3Packages.bellows: 0.34.4 -> 0.34.5
- [6a395166](6a395166ac) python3Packages.mac-vendor-lookup: pick correct src version
- [9c57e0b5](9c57e0b5b3) python3Package.bluetooth-adapters: 0.8.0 -> 0.12.0
- [64a7798f](64a7798f23) python3Packages.bluetooth-auto-recovery: 0.5.1 -> 0.5.4
- [fa4f8b6b](fa4f8b6b87) python3Packages.hass-nabucasa: 0.56.0 -> 0.61.0
- [294b532b](294b532b44) python3Packages.nettigo-air-monitor: 1.4.2 -> 1.5.0
- [56d645ed](56d645ed24) python3Packages.nextdns: 1.1.1 -> 1.2.2
- [adffebab](adffebab32) python3Packages.pyrainbird: 0.6.2 -> 0.6.3
- [f8f4b61b](f8f4b61b67) python3Packages.pytibber: 0.26.3 -> 0.26.4
- [2d93eec2](2d93eec21b) python3Packages.pyunifiprotect: 4.5.1 -> 4.5.2
- [0843740e](0843740e4e) python3Packages.pyvesync: 2.0.4 -> 2.1.1
- [f34cfe42](f34cfe42a3) python3Packages.sense-energy: 0.10.4 -> 0.11.0
- [ca02a0e2](ca02a0e265) python3Packages.subarulink: 0.6.1 -> 0.7.0
- [470cadf5](470cadf538) python3Packages.xiaomi-ble: 0.11.0 -> 0.12.2
- [f960451b](f960451ba9) python3Packages.xknx: 1.2.1 -> 2.1.0
- [8e7a408d](8e7a408d6d) python3Packages.zwave-js-server-python: 0.43.0 -> 0.43.1
- [e6bbed1c](e6bbed1cc5) python3Packages.bleak-retry-connector: 2.9.0 -> 2.10.1
- [211d1a96](211d1a964e) home-assistant: 2022.11.5 -> 2022.12.0
- [87c22c79](87c22c7909) nixos/home-assistant: update bluetooth components
- [6569998d](6569998d23) python3Packages.home-assistant-bluetooth: 1.6.0 -> 1.8.1
- [166db6ef](166db6ef4b) erlang: don't relink escript on darwin
- [4e9abf3a](4e9abf3af4) cve: 1.1.0 -> 1.2.0
- [e653bf7a](e653bf7a33) ddosify: 0.9.0 -> 0.9.1
- [660b60e9](660b60e9d3) terraform-providers.cloudamqp: 1.20.0 → 1.20.1
- [cb66e74a](cb66e74ad5) terraform-providers.fastly: 3.0.2 → 3.0.3
- [7adc65c8](7adc65c821) terraform-providers.heroku: 5.1.7 → 5.1.8
- [9b2c4211](9b2c421151) terraform-providers.infoblox: 2.1.0 → 2.2.0
- [c33749e1](c33749e142) terraform-providers.snowflake: 0.52.0 → 0.53.0
- [909ec73e](909ec73ed6) terraform-providers.oci: 4.100.0 → 4.101.0
- [9c1d8641](9c1d86410f) terraform-providers.tencentcloud: 1.79.0 → 1.79.1
- [be5ff49e](be5ff49e53) do-agent: 3.15.1 -> 3.15.2
- [2341d8f1](2341d8f150) python3Packages.mypy-boto3-s3: fix package metadata
- [d5338a35](d5338a356a) ocamlPackages.sexp_pretty: 0.15.0 → 0.15.1
- [4d63564a](4d63564ae5) ocamlPackages.csvfields: 0.15.0 → 0.15.1
- [c24b7eab](c24b7eab34) ocamlPackages.core_unix: 0.15.0 → 0.15.2
- [92b4f173](92b4f17380) tennix: avoid URL literal
- [a445c5f6](a445c5f6ea) supergfxd: fix config format
- [2f80026c](2f80026cd2) aardvark-dns: 1.3.0 -> 1.4.0
- [4d7177b5](4d7177b500) netavark: 1.3.0 -> 1.4.0

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-09 01:32:45 +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%