mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-03 12:27:27 -05:00
The new straight version won't unhelpfully override `(org-version)` and `(org-revision)` with with its custom implementation that only work in a git repository. This change will make `elfeed` package work again. (Setting `straight-fix-org` to `nil` would have also resolved the issue) The updated `straight.el` version also plays along better with emacsGcc. Relates-to: vlaci/nix-straight.el#2 Fixes: #158
98 lines
3.0 KiB
Nix
98 lines
3.0 KiB
Nix
/* Usage example in flake.nix:
|
|
|
|
{
|
|
inputs = {
|
|
home-manager.url = "github:rycee/home-manager";
|
|
nix-doom-emacs.url = "github:vlaci/nix-doom-emacs/flake";
|
|
};
|
|
|
|
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 ];
|
|
home.doom-emacs = {
|
|
enable = true;
|
|
doomPrivateDir = ./path/to/doom.d;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|
|
*/
|
|
|
|
{
|
|
description = "nix-doom-emacs home-manager module";
|
|
|
|
inputs = {
|
|
doom-emacs.url = "github:hlissner/doom-emacs/develop";
|
|
doom-emacs.flake = false;
|
|
doom-snippets.url = "github:hlissner/doom-snippets";
|
|
doom-snippets.flake = false;
|
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
|
emacs-overlay.flake = false;
|
|
emacs-so-long.url = "github:hlissner/emacs-so-long";
|
|
emacs-so-long.flake = false;
|
|
evil-markdown.url = "github:Somelauw/evil-markdown";
|
|
evil-markdown.flake = false;
|
|
evil-org-mode.url = "github:hlissner/evil-org-mode";
|
|
evil-org-mode.flake = false;
|
|
evil-quick-diff.url = "github:rgrinberg/evil-quick-diff";
|
|
evil-quick-diff.flake = false;
|
|
explain-pause-mode.url = "github:lastquestion/explain-pause-mode";
|
|
explain-pause-mode.flake = false;
|
|
nix-straight.url = "github:vlaci/nix-straight.el/v2.2.0";
|
|
nix-straight.flake = false;
|
|
nose.url= "github:emacsattic/nose";
|
|
nose.flake = false;
|
|
ob-racket.url = "github:xchrishawk/ob-racket";
|
|
ob-racket.flake = false;
|
|
org-mode.url = "github:emacs-straight/org-mode";
|
|
org-mode.flake = false;
|
|
org-yt.url = "github:TobiasZawada/org-yt";
|
|
org-yt.flake = false;
|
|
php-extras.url = "github:arnested/php-extras";
|
|
php-extras.flake = false;
|
|
revealjs.url = "github:hakimel/reveal.js";
|
|
revealjs.flake = false;
|
|
rotate-text.url = "github:debug-ito/rotate-text.el";
|
|
rotate-text.flake = false;
|
|
|
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { nixpkgs, flake-utils, ... }@inputs:
|
|
let
|
|
inherit (flake-utils.lib) eachDefaultSystem eachSystem;
|
|
in
|
|
eachDefaultSystem
|
|
(system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
devShell = pkgs.mkShell { buildInputs = [ (pkgs.python3.withPackages (ps: with ps; [ PyGithub ])) ]; };
|
|
}) //
|
|
eachSystem [ "x86_64-linux" ]
|
|
(system: {
|
|
checks = {
|
|
init-example-el = nixpkgs.legacyPackages.${system}.callPackage ./. { doomPrivateDir = ./test/doom.d; dependencyOverrides = inputs; };
|
|
};
|
|
}) //
|
|
{
|
|
hmModule = import ./modules/home-manager.nix inputs;
|
|
};
|
|
}
|