github-actions[bot] 5c25f7d7bb flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - f3d9d4bd -> b05d2077 (#46)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: f3d9d4bd89...b05d2077eb

- [2ced62da](2ced62da40) globalarrays: 5.8 -> 5.8.1
- [7c7e2447](7c7e244719) xcowsay: 1.5.1 -> 1.6
- [452f76cf](452f76cfaf) rure: init at 0.2.1
- [c6923ee0](c6923ee0d9) jacinda: init at 0.2.0.0
- [3c57ff6b](3c57ff6bf5) haskellPackages.{regex-rure,jacinda}: add myself as maintainer
- [e70ba299](e70ba2998d) aws-vault: 6.3.1 -> 6.4.0 ([NixOS/nixpkgs⁠#156374](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156374))
- [e7dbfd7e](e7dbfd7ece) terraform.withPlugins: clean and remove 0.12 support ([NixOS/nixpkgs⁠#155477](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/155477))
- [b3e38575](b3e385753b) orchis-theme: add withWallpapers option
- [1abaf88b](1abaf88bae) goreleaser: 1.2.5 -> 1.3.1
- [786b8a71](786b8a718d) gosec: 2.9.5 -> 2.9.6
- [f547487c](f547487c91) heimer: 3.1.0 -> 3.2.0
- [e06dfabe](e06dfabe6e) htpdate: 1.3.1 -> 1.3.3
- [3463e507](3463e507c5) vnstat: 2.8 -> 2.9
- [4c8a08d2](4c8a08d231) tuigreet: 0.7.1 -> 0.7.2
- [37596fe4](37596fe4a9) imgproxy: 3.1.3 -> 3.2.1
- [d54a7e72](d54a7e72a6) python3Packages.pymdown-extensions: remove period from description
- [d6521c5e](d6521c5ef7) mkdocs: move to python3Packages.mkdocs
- [14d6955a](14d6955a46) corsmisc: remove
- [5b8b4164](5b8b4164fe) sigurlx: remove
- [58a2318a](58a2318a57) python3Packages.mkdocs: sort and categorize inputs
- [60d94441](60d94441fd) python3Packages.mkdocs: 1.2.1 -> 1.2.3
- [173a62e8](173a62e890) python3Packages.mkdocs: remove unnecessary postPatch step
- [cad3bc9b](cad3bc9b8e) signal-cli: 0.10.1 -> 0.10.2
- [5762b8c8](5762b8c8a5) irods: Don't use builtins.nixVersion
- [10d33eee](10d33eee2d) python3Packages.mkdocs: fix indent
- [ba480d77](ba480d7722) python3Packages.mkdocs: get tests passing
- [4a465470](4a46547008) expenses: install shell completion
- [73e2f41e](73e2f41ea2) matrix-synapse: 1.50.1 -> 1.50.2
- [ba3e91ed](ba3e91ed43) lib.types: Add unique like uniq, but custom errors
- [2aa7c258](2aa7c25808) nixos: Document system.build.toplevel
- [511e89f5](511e89f5a6) nixos: Make system.build.installBootLoader a proper option
- [4800f308](4800f30841) nixos: Explain system.build.installBootLoader's odd default
- [3fb41650](3fb4165098) libreswan: Fix ExecStopPost paths
- [8691ab3d](8691ab3d47) lib.modules: Define mergeOneOption in terms of mergeUniqueOption
- [d38cf78e](d38cf78e0e) koreader: 2021.12.1 -> 2022.01
- [48dbe262](48dbe26229) nixos/doc: Document types.unique
- [f26f2358](f26f235800) python3Packages.cyclonedx-python-lib: 1.1.1 -> 1.2.0
- [040139e4](040139e4a8) python3Packages.cyclonedx-python-lib: 1.2.0 -> 1.3.0
- [ed6b342f](ed6b342fc3) retroarchFull: use lib.meta.availableOn
- [f0e9f54d](f0e9f54d6e) lib/meta: fix typo in platformMatch comment
- [b3ca14d0](b3ca14d0fd) ncspot: 0.9.3 -> 0.9.5
- [f243b177](f243b177d5) havoc: 0.3.1 -> 0.4.0
- [60638a2d](60638a2dc5) groestlcoin_hash: init at 1.0.1
- [af2b1f15](af2b1f15b4) steampipe: 0.12.0 -> 0.12.1
- [24822e28](24822e28f8) lazygit: 0.31.4 -> 0.32.2
- [2a82cd67](2a82cd67b5) lego: 4.5.3 -> 4.6.0
- [93a5b04b](93a5b04b9a) scs: 3.0.0 -> 3.1.0
- [c292a879](c292a8799f) strongswan: 5.9.4 -> 5.9.5
- [6c76d36a](6c76d36a3b) strongswan: add strongswan-swanctl test to passthru.tests
- [911ef677](911ef6778e) log4j-sniffer: 1.2.0 -> 1.6.0
- [308f57db](308f57dbaf) lynis: 3.0.6 -> 3.0.7
- [eb5e5f13](eb5e5f139d) libusbgx: init at 2021-10-31
- [339a63ab](339a63abbe) gt: init at 2021-09-30
- [78561d2f](78561d2f6b) mcfly: 0.5.11 -> 0.5.12
- [84c9735a](84c9735af5) python310Packages.aenum: 3.1.6 -> 3.1.8
- [8bd7d6d6](8bd7d6d6e0) star: 2.7.9a -> 2.7.10a
- [1616d5df](1616d5dfb4) librespot: mark as broken on darwin
- [3e2706a0](3e2706a0eb) python310Packages.bond-api: 0.1.15 -> 0.1.16
- [b67fc5a3](b67fc5a3e5) python310Packages.total-connect-client: 2021.12 -> 2022.1
- [493d141d](493d141d06) stunnel: 5.61 -> 5.62
- [8477e534](8477e53482) spotdl: 3.7.2 -> 3.9.2
- [1ac83b0d](1ac83b0de5) libptytty: init at 2.0
- [7fc56a03](7fc56a03f0) rxvt-unicode: 9.26 -> 9.30
- [5c09fe18](5c09fe1887) libsForQt5.qcoro: 0.3.0 -> 0.4.0
- [3a879825](3a87982537) video2midi: 0.4.0.2 -> 0.4.6.5
- [d0ed7ee0](d0ed7ee0b0) chromium: get-commit-message.py: Improve the parsing
- [e8b241cd](e8b241cdba) chromiumDev: Fix the configuration phase
- [7916caf7](7916caf759) wpgtk: 6.1.3 -> 6.5.0
- [3b6c07fb](3b6c07fb36) prometheus-redis-exporter: 1.33.0 -> 1.34.1
- [32d086c4](32d086c4bb) maintainers: format
- [61982fb6](61982fb66a) maintainers: update samuelgrf's email and keys
- [1c58cdbe](1c58cdbeed) nixos/modprobe: add boot.initrd.extraModprobeConfig option
- [be8a4c32](be8a4c3222) python3Packages.txtorcon: disable tests on aarch64-darwin
- [048d5eea](048d5eeabd) fcitx5-unikey: init at 5.0.7 ([NixOS/nixpkgs⁠#154699](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/154699))
- [ae2b1d7e](ae2b1d7e7f) python3Packages.rtoml: ignore DeprecationWarning
- [e79bb564](e79bb564af) pdfstudio: merge with package pdfstudioviewer ([NixOS/nixpkgs⁠#156274](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156274))
- [7976f70b](7976f70bae) ffmpeg_5: init at 5.0
- [abe84c21](abe84c21a9) neovim: add ldflag for treesitter plugins requiring libstdc++
- [555014c6](555014c67d) online-judge-tools: init at 11.5.1
- [637a001f](637a001f69) dcap: Init at 2.47.12 ([NixOS/nixpkgs⁠#156282](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156282))
- [ecbad79b](ecbad79bfb) lombok: 1.18.20 -> 1.18.22
- [b725c5c3](b725c5c3f1) uutils-coreutils: 0.0.8 -> 0.0.12
- [88be3e3c](88be3e3ca4) flexget: 3.2.13 -> 3.2.15
- [3ba3702e](3ba3702e62) ima-evm-utils: 1.1 -> 1.4
- [6bd19d74](6bd19d749c) sqlfluff: 0.9.1 -> 0.9.2
- [c31a567a](c31a567a83) mpc_cli: put myself as new maintainer
- [54d5c634](54d5c634d0) mpc_cli: install shell completions
- [52c5f6c6](52c5f6c6a1) mpc-cli: temporary alias to mpc_cli
- [b7875ab3](b7875ab366) clerk: mpc_cli -> mpc-cli
- [a2658f46](a2658f4633) nixos/tests/mpd.nix: mpc_cli -> mpc-cli
- [7fb017e3](7fb017e379) nixos/modules/services/hardware/triggerhappy.nix: mpc_cli -> mpc-cli
- [2050d991](2050d991c4) maintainers/maintainer-list.nix: remove algorith
- [7366cd77](7366cd77cc) nix: 2.5.1 -> 2.6.0
- [fd7729c1](fd7729c145) nix: introduce buildNix function to avoid so much copy-pasting
- [6e7e03fe](6e7e03feb7) move mpc_cli to aliases.nix
- [b5fc7509](b5fc750965) nixUnstable: 2.6pre20211217 -> 2.7pre20220124
- [dcf2db1a](dcf2db1a4f) kubernetes: 1.22.4 -> 1.22.6
- [22897649](2289764950) python310Packages.levenshtein: 0.16.0 -> 0.17.0
- [8d530c67](8d530c676a) sgx-sdk: fix build
- [53a6300a](53a6300ad6) conmon: 2.0.32 -> 2.1.0
- [9af8ecce](9af8ecce83) maintainer: update lunarequest's name
- [ea7407b1](ea7407b156) elixir: 1.13.1 -> 1.13.2 ([NixOS/nixpkgs⁠#156462](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156462))
- [409e81a1](409e81a1b6) gleam: 0.18.2 -> 0.19.0 ([NixOS/nixpkgs⁠#156486](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156486))
- [6a85c487](6a85c48734) python310Packages.plexapi: 4.8.0 -> 4.9.1
- [4890db4f](4890db4fdd) python3Packages.rollbar: disable tests
- [b54751a2](b54751a221) nixStable: 2_6 -> 2_5
- [254db377](254db3771f) python310Packages.pylaunches: 1.2.1 -> 1.2.2
- [77345eab](77345eab9b) python310Packages.aioshelly: 1.0.7 -> 1.0.8
- [6a26c320](6a26c3206a) python310Packages.flake8-length: 0.2.2 -> 0.3.0
- [9e87a658](9e87a65871) python310Packages.django-cleanup: 5.2.0 -> 6.0.0
- [fedc27d1](fedc27d167) python310Packages.pylibftdi: 0.19.0 -> 0.20.0
- [4ceb1897](4ceb1897d3) python3Packages.pylibftdi: update meta
- [3f2bda3d](3f2bda3de1) python310Packages.plaid-python: 8.9.0 -> 8.10.0
- [a04d00dd](a04d00dd0d) python310Packages.manimpango: 0.4.0.post0 -> 0.4.0.post1
- [52a75a30](52a75a3031) python3Packages.pytest-subprocess: 1.3.2 -> 1.4.0
- [fc92ef3b](fc92ef3b58) vimPlugins: update
- [005f015b](005f015bf3) kubescape: 2.0.141 -> 2.0.142
- [bbae68bf](bbae68bf89) kubescape: 2.0.142 -> 2.0.143
- [5c9b88f3](5c9b88f321) python310Packages.aiounifi: 29 -> 30
- [479a6c43](479a6c4362) topgrade: 8.1.2 -> 8.2.0
- [f8ea1ec9](f8ea1ec9ce) dune_2: 2.9.1 -> 2.9.2 ([NixOS/nixpkgs⁠#156329](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/156329))
- [20e7213d](20e7213d16) coq_8_15: 8.15+rc1 → 8.15.0
- [c069b934](c069b934c2) python3Packages.flux-led: 0.28.10 -> 0.28.11
- [6fd76ce6](6fd76ce628) python310Packages.markdown-it-py: 2.0.0 -> 2.0.1
- [e40a892f](e40a892f11) coqPackages.math-classes: 8.13.0 -> 8.15.0
- [075b606e](075b606ef9) coqPackages.corn: mark as compatible with Coq 8.15
- [a8e94e7e](a8e94e7e90) python310Packages.glom: 20.11.0 -> 22.1.0
- [d33a77c0](d33a77c056) cosign: 1.4.1 -> 1.5.0
- [e65d5300](e65d53007d) python310Packages.django-taggit: 2.0.0 -> 2.1.0
- [375b48a5](375b48a52d) sagetex: init at 3.6
- [fc475fa8](fc475fa802) sagetex: etc
- [35fa5b5e](35fa5b5ee6) sagetex: etc

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-01-29 04:06:09 +02:00
2022-01-01 04:48:36 +02: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/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:rycee/home-manager";
    nix-doom-emacs.url = "github:nix-community/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%