!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

229 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs47 Servers

Load older messages


SenderMessageTime
3 Mar 2023
@k0kada:matrix.orgk0kada (he/him)Not sure, I think the whole issue right now is that new profile system from doomemacs20:01:04
@k0kada:matrix.orgk0kada (he/him)Since I tried to remove it some things didn't initialize so everything got broken I guess20:01:38
@k0kada:matrix.orgk0kada (he/him)The code from doomemacs seems relatively stable nowadays BTW, so if we end up fixing I think we shouldn't expect other big breakages20:02:11
@k0kada:matrix.orgk0kada (he/him) But I also have to say, it is not easy to make it work though. doomemacs now expects you to run doom sync at least once to generate the profile 20:03:15
4 Mar 2023
@k0kada:matrix.orgk0kada (he/him)I think most people missed the change in Nix 2.10 that allows Nix to run without installation inside user $HOME11:02:38
@k0kada:matrix.orgk0kada (he/him)I can't find many references in Google, except for the releases notes for Nix 2.1011:02:59
@k0kada:matrix.orgk0kada (he/him)Also, most projects still have issues with it: Home-Manager doesn't work, but they hit another bug with Nix 2.14 and I think they're now going to fix it11:03:51
@k0kada:matrix.orgk0kada (he/him)The fact that there is no ready to use Nix static binaries in NixOS website also doesn't help11:06:04
@k0kada:matrix.orgk0kada (he/him)I think I need to write about this somewhere to raise the awareness about this, because this is seriously awesome11:06:31
@k0kada:matrix.orgk0kada (he/him)Anyway, random rant :P11:06:55
@ravensiris:matrix.orgravensiris joined the room.14:00:53
@ixlun:matrix.orgMatthew Leach

Hi all. I've just updated to the latest nix-doom-emacs. When applying my config, nix is getting stuck at:

[1/0/1 built] building emacs-straight-packages.json (installPhase): [nix-doom-emacs] Inhibiting (kill-emacs)

I've left it over 30 minutes but no progress. Has anyone else seen this?

15:32:51
@ravensiris:matrix.orgravensirisyes. it's broken for rn. are you using emacs-overlay and overriding emacsPackage? try building with regular emacs from stable. it worked for me(might not be an option if you need newer or pgtk)15:35:13
@ravensiris:matrix.orgravensiris * yes. it's broken for me rn. are you using emacs-overlay and overriding emacsPackage? try building with regular emacs from stable. it worked for me(might not be an option if you need newer or pgtk)15:35:21
@ixlun:matrix.orgMatthew LeachIndeed, I'm using emacs-overlay for pgtk emacs. I'll try with stable.15:36:32
@benedikt:tissot.deBenedikt TissotYou can also pin emacs-overlay15:37:28
@ixlun:matrix.orgMatthew LeachAh so is this an emacs-overlay regression?15:38:00
@benedikt:tissot.deBenedikt TissotI actually think it is a change in upstream emacs as there were only bumps in emacs between the commit (scroll up a bit here I posted it at some point) that broke it for me and the last one that worked15:39:33
@ixlun:matrix.orgMatthew LeachI'll take a look. Thanks!15:47:19
@ravensiris:matrix.orgravensiris

Can confirm it worked for me with:

inputs.emacs-overlay.url = "https://github.com/nix-community/emacs-overlay/commit/c16be6de78ea878aedd0292aa5d4a1ee0a5da501";
15:57:13
@ravensiris:matrix.orgravensirisand emacsPgtk15:57:23
@ravensiris:matrix.orgravensiris *

Can confirm it worked for me with:

inputs.emacs-overlay.url = "github:nix-community/emacs-overlay?rev=c16be6de78ea878aedd0292aa5d4a1ee0a5da501";
15:58:40
@ravensiris:matrix.orgravensiris anyone has tree-sitter grammars for emacs 29+ builtin tree-sitter module configured through nix?
emacs expects the tree-sitter shared objects to be called libtree-sitter-LANGUAGE.so so currently tree-sitter-grammars package won't work since it generates LANGUAGE.so. is there a way to overlay tree-sitter-grammars so it symlinks LANGUAGE.so to libtree-sitter-LANGUAGE.so? or alternatively does anyone have this packaged: https://github.com/casouri/tree-sitter-module ? I tried manually building https://github.com/casouri/tree-sitter-module in my home dir and then added (setq treesit-extra-load-path '("/home/myuser/tree-sitter-module/dist")) and it worked. but it's not ideal, would like it managed by nix.
tree-sitter docs for reference: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29
17:36:28
@jasonjckn:matrix.orgNull_A
In reply to @ravensiris:matrix.org
anyone has tree-sitter grammars for emacs 29+ builtin tree-sitter module configured through nix?
emacs expects the tree-sitter shared objects to be called libtree-sitter-LANGUAGE.so so currently tree-sitter-grammars package won't work since it generates LANGUAGE.so. is there a way to overlay tree-sitter-grammars so it symlinks LANGUAGE.so to libtree-sitter-LANGUAGE.so? or alternatively does anyone have this packaged: https://github.com/casouri/tree-sitter-module ? I tried manually building https://github.com/casouri/tree-sitter-module in my home dir and then added (setq treesit-extra-load-path '("/home/myuser/tree-sitter-module/dist")) and it worked. but it's not ideal, would like it managed by nix.
tree-sitter docs for reference: https://git.savannah.gnu.org/cgit/emacs.git/tree/admin/notes/tree-sitter/starter-guide?h=emacs-29
emacs-overlay does this
18:54:24
@ravensiris:matrix.orgravensiris
In reply to @jasonjckn:matrix.org
emacs-overlay does this

Thanks it's here indeed https://github.com/nix-community/emacs-overlay/blob/master/overlays/emacs.nix#L108-L136.
Got it working with:

            overlays = [ emacs-overlay.overlays.default (final: prev: {
              emacsPgtk = prev.emacsPgtk.override {
                treeSitterPlugins = with prev.pkgs.tree-sitter-grammars; [ 
                  tree-sitter-elixir
                  tree-sitter-heex
                  tree-sitter-eex
                ];
              };
            })];
20:12:48
@jasonjckn:matrix.orgNull_AScreenshot 2023-03-04 at 12.41.42 PM.png
Download Screenshot 2023-03-04 at 12.41.42 PM.png
20:42:36
@jasonjckn:matrix.orgNull_AScreenshot 2023-03-04 at 12.42.03 PM.png
Download Screenshot 2023-03-04 at 12.42.03 PM.png
20:42:37
@jasonjckn:matrix.orgNull_A ravensiris:
if you want branch v29, you can do something like this
20:42:38
@twitchy0:matrix.orgtwitchy0 joined the room.22:58:13
10 Mar 2023
@chrispickard:matrix.orgchrispickard

I attempted to port my working doom config over to home-manager today and I'm running into

Doom hasn't been initialized yet; did you remember to run 'doom sync' in the shell?

which I see is an open bug on the issue tracker, does anyone have any more information or workarounds?

18:46:34

Show newer messages


Back to Room ListRoom Version: 9