github-actions[bot] 4a59373e30 flake.lock: Updating 'nixpkgs (NixOS/nixpkgs)' - 4bc1c1bd -> a174de16 (#215)
### Changes for nixpkgs

On branch: nixpkgs-unstable
Commits: 4bc1c1bd2f...a174de16ed

- [a8df6f31](a8df6f3109) qogir-theme: 2022-05-29 -> 2022-07-17 ([NixOS/nixpkgs⁠#181761](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/181761))
- [d99c2fb4](d99c2fb447) simdjson: 1.0.2 -> 2.2.0
- [c8585bf4](c8585bf4a8) coqPackages.coq-elpi 1.14.0 -> 1.15.1
- [310ce906](310ce906b6) hedgewars: use qt514's overridden glibc++
- [00f62a4a](00f62a4a6f) domination: 1.2.4 -> 1.2.5
- [e8443587](e84435878c) metals: 0.11.6 -> 0.11.7
- [72ba7ecd](72ba7ecdd2) python310Packages.treex: Fix build
- [4b903971](4b90397139) python310Packages.textx: Fix build
- [f0f635a4](f0f635a434) vscode-extensions: properly split marketplace ref attributes
- [cf38fea5](cf38fea573) python310Packages.youtube-search: 2.1.0 -> 2.1.1
- [b11ce38b](b11ce38b27) matrix-synapse: 1.62.0 -> 1.63.0
- [23a106dc](23a106dc6e) python310Packages.simple-salesforce: 1.12.0 -> 1.12.1
- [6b8c65ac](6b8c65acd9) treewide: fix fallout from 'cmake/setup-hook.sh: Don't skip build-RPATH'
- [684b25a7](684b25a7ae) python310Packages.prayer-times-calculator: 0.0.5 -> 0.0.6
- [39c06947](39c0694709) nixos/prometheus-mail-exporter: support storing `passphrase` outside of the store
- [9dc08e79](9dc08e7979) k9s: 0.25.21 -> 0.26.0
- [7d48fb88](7d48fb88a8) php81Packages.composer: 2.3.7 -> 2.3.10
- [bb3f5dda](bb3f5dda65) wkhtmltopdf-bin: add myself as maintainer
- [19603a74](19603a74aa) wkhtmltopdf-bin: runHook pre/post install phases
- [1d908484](1d908484a8) grass: 8.0.1 -> 8.2.0
- [a3c5c5ee](a3c5c5eec4) nixosTests.airsonic: fix failure (type error)
- [433324ba](433324baa1) python310Packages.slack-sdk: 3.17.2 -> 3.18.0
- [5b76bb61](5b76bb6110) cardo: init at 1.04
- [67a82cf6](67a82cf604) python310Packages.pyface: 7.4.1 -> 7.4.2
- [b81c81be](b81c81be13) nixos/tests/polaris: fix type check fail
- [f49a09b5](f49a09b5a2) metals: remove client specific wrappers
- [9187401e](9187401eb8) python310Packages.google-cloud-access-context-manager: 0.1.12 -> 0.1.13
- [0d742d69](0d742d69e7) python310Packages.google-cloud-asset: 3.9.1 -> 3.10.0
- [ee3b7770](ee3b777042) python310Packages.google-cloud-automl: 2.7.3 -> 2.8.0
- [2cf736b4](2cf736b44e) python310Packages.google-cloud-dataproc: 4.0.3 -> 5.0.0
- [53ad5051](53ad5051fa) python310Packages.google-cloud-securitycenter: 1.11.1 -> 1.12.0
- [1a543290](1a543290a0) tdesktop: add missing deps
- [b5250a33](b5250a333b) libredirect: Fix cross compilation `buildPackages`
- [8dbbc14b](8dbbc14b9e) python310Packages.aiobotocore: 2.3.0 -> 2.3.4
- [85505ee1](85505ee1cf) osu-lazer: 2022.709.1 -> 2022.719.0
- [3817a25e](3817a25e42) osu-lazer: add thiagokokada as maintainer
- [bde2513c](bde2513c62) maintainers: papojari → annaaurora
- [7519d550](7519d550fa) hal-hardware-analyzer: fix build with python 3.10
- [7624e519](7624e519b0) grpc-gateway: 2.10.3 -> 2.11.0
- [1b1c1e8e](1b1c1e8eb2) python310Packages.asf-search: 4.0.3 -> 5.0.1
- [44d99560](44d9956021) lima: 0.11.1 -> 0.11.2
- [2270e61b](2270e61b78) git-machete: 3.11.1 -> 3.11.2
- [f4a64b0c](f4a64b0ce9) python310Packages.sagemaker: 2.99.0 -> 2.100.0
- [7249b8a2](7249b8a2f3) makePkgconfigItem: init new function to generate pc files
- [0b7a3b24](0b7a3b24d6) stb: add pkgconfig file
- [c6a9d069](c6a9d069e9) tinycc: use makePkgconfigItem
- [c23e9c6a](c23e9c6a4d) nbd: add tls support
- [fecbff68](fecbff685e) mloader: 1.1.8 -> 1.1.9
- [8cd54993](8cd5499337) nbd: fix build on darwin
- [50d9adfa](50d9adfa8a) Fix coqPackages.serapi version 8.15 for ocamlPackages.janeStreet version 0.15
- [0cc7e431](0cc7e431b5) python310Packages.lektor: 3.3.4 -> 3.3.5
- [cb783715](cb78371557) setserial: fix cross compilation
- [ea635c0c](ea635c0c30) logseq: 0.7.6 -> 0.7.7
- [73ad01f7](73ad01f7d3) unifi-protect-backup: init at 0.7.1
- [d6256f19](d6256f19d1) libgit2-glib: 1.0.0.1 -> 1.1.0
- [9e53ac8b](9e53ac8b8c) python310Packages.policy-sentry: 0.12.3 -> 0.12.4
- [791953e0](791953e048) python310Packages.levenshtein: 0.19.2 -> 0.19.3
- [1446695c](1446695c7b) python310Packages.pystemd: 0.8.0 -> 0.10.0
- [5b2bf60e](5b2bf60e0b) arrow-cpp-glib: init at 8.0.0
- [92a0505c](92a0505c26) arrow-cpp: Adjust homepage to specific variant
- [ed0793c2](ed0793c2d4) ungoogled-chromium: 103.0.5060.114 -> 103.0.5060.134
- [b9da0d38](b9da0d3852) first release of Metacoq
- [41093cc1](41093cc18c) crun: 1.4.5 -> 1.5
- [0ae02f0c](0ae02f0c41) fish: 3.5.0 -> 3.5.1
- [b55563cc](b55563cc57) dune_3: 3.3.1 -> 3.4.0
- [a8ce8ba5](a8ce8ba5dc) ocamlPackages.containers: 3.6.1 → 3.9
- [0da1362f](0da1362ff9) qt5.qtlottie: init
- [ba5d6abb](ba5d6abb39) remove some maintainerships
- [cb366f40](cb366f403d) python310Packages.pyswitchbot: 0.14.0 -> 0.14.1
- [2e95033c](2e95033c7d) python310Packages.hahomematic: 2022.7.9 -> 2022.7.11
- [66d302fa](66d302fa70) polymc: switch license to gpl3Only
- [20e17c8c](20e17c8cd4) buildGoModules: don't add kalbasit as maintainer to every go package
- [ba1ba739](ba1ba73991) python310Packages.google-cloud-dataproc: update disabled
- [4a554b44](4a554b44b7) python310Packages.google-cloud-automl: update disabled
- [ce6ca649](ce6ca6498f)   python310Packages.google-cloud-asset: update disabled
- [fe35161c](fe35161c63) python310Packages.google-cloud-access-context-manager: update disabled
- [f4b02d9b](f4b02d9b1b) matrix-synapse: 1.63.0 -> 1.63.1
- [51532baa](51532baaf3) nuclei: 2.7.3 -> 2.7.4
- [ae5feae3](ae5feae344) python310Packages.identify: 2.5.1 -> 2.5.2
- [2a9f101e](2a9f101ee8) n8n: 0.186.0 → 0.187.1
- [81add660](81add6600c) nixos/privacyidea-ldap-proxy: umask to avoid accidental world-readability
- [590e60d1](590e60d124) nixos/mxisd: umask to avoid accidental world-readability
- [92bd77e8](92bd77e85e) nixos/prometheus-mail-exporter: umask to avoid accidental world-readability
- [5fbeebb5](5fbeebb56b) haskellPackages.fast-tags: unbreak
- [161e4838](161e4838fd) atlassian-crowd: 4.4.0 -> 5.0.1
- [b90f389c](b90f389c10) python3.pkgs.pythonix: remove myself as maintainer
- [9e393ee5](9e393ee5dd) chromiumBeta: 104.0.5112.48 -> 104.0.5112.57
- [247f871b](247f871b4d) chromium: 103.0.5060.114 -> 103.0.5060.134
- [2c19f93f](2c19f93f08) gnomeExtensions: auto-update
- [f6c47e50](f6c47e501a) _1password-gui-beta: 8.8.0-165.BETA -> 8.8.0-215.BETA
- [63e44027](63e4402739) gnu-cobol: refactor
- [8cc5d3f3](8cc5d3f34e) python310Packages.pysigma: 0.6.5 -> 0.6.6
- [41e37110](41e371106b) kubectx: pin to go 1.17
- [fa917a6f](fa917a6f8c) cvc3: unbreak on aarch64-darwin
- [e5801de8](e5801de829) lemmy: 0.16.4 -> 0.16.6
- [1e81606c](1e81606cd8) python310Packages.dvc-objects: 0.0.26 -> 0.1.1
- [af7d2aaa](af7d2aaa0d) ffmpeg: add platforms
- [c796935a](c796935aa5) gvproxy: 0.3.0 -> 0.4.0
- [c42d8070](c42d807011) python310Packages.pydal: 20220609.1 -> 20220720.1
- [d2b32502](d2b3250200) ocamlPackages.mariadb: 1.1.4 → 1.1.6
- [fbb839c5](fbb839c562) ocamlPackages.cohttp-async: Remove redundant patch that doesn't apply
- [a174de16](a174de16ed) hedgedoc: 1.9.0 -> 1.9.4 ([NixOS/nixpkgs⁠#178129](http://r.duckduckgo.com/l/?uddg=https://github.com/NixOS/nixpkgs/issues/178129))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-07-22 02:58:50 +01:00
2022-07-08 16:53:23 +01:00
2022-07-10 19:48:51 +01:00

nix-doom-emacs

Status
Build on master Build Status on master
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: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;  # 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%