!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
23 Jun 2023
@asbjorn:olli.ngAsbjørn

Latest nix-doom-emacs is broken for me. Can open emacs standalone, but the systemd service dumps a bunch of errors elated to not finding something called "annalist"
(I'm noticing I really need to pin my emacs setup now 😅)

Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/qgq41l3x4fbdx36qx7xxl4b1sn5sj70x-doom-modeline-workarounds.el (source)...
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/qgq41l3x4fbdx36qx7xxl4b1sn5sj70x-doom-modeline-workarounds.el (source)...done
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/j7qpa26x2g5wkv7d9rzvd4fwfvadz9ii-doom.d/config.el (source)...
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/j7qpa26x2g5wkv7d9rzvd4fwfvadz9ii-doom.d/config.el (source)...done
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/mfwnjy57ilyzqw56978i5amspw882614-doom-private/config.extra.el (source)...
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/mfwnjy57ilyzqw56978i5amspw882614-doom-private/config.extra.el (source)...done
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/ik1ni0r6lncx4fkac4grkzfm4nmr5vnp-doom-emacs/lisp/doom-start.el (source)...done
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/z2mzf110hlkq9ca7cbnm47s93sczg0mw-info-workarounds.el (source)...
Jun 23 21:09:23 plate bash[1525906]: Loading /nix/store/z2mzf110hlkq9ca7cbnm47s93sczg0mw-info-workarounds.el (source)...done
Jun 23 21:09:24 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:25 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:27 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:27 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:27 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:27 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:27 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:28 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:28 plate bash[1525906]: evil-collection error: (file-missing Cannot open load file No such file or directory annalist)
Jun 23 21:09:28 plate bash[1525906]: Starting Emacs daemon.
Jun 23 21:09:28 plate systemd[1765]: Started Emacs text editor.
19:11:09
@asbjorn:olli.ngAsbjørnnot sure if this is the right place to dump this kind of thing. I fixed my own setup, but not in any generalizable way19:18:25
@roman.gonzalez:matrix.orgroman.gonzalezI'm seeing the same issue with annalist 😑19:42:57
26 Jun 2023
@roman.gonzalez:matrix.orgroman.gonzalez

ugh, I think I know what is going on with the evil-collection package 😬

So first, context.

evil-collection is a package to add evil keybindings to a bunch of other modes.

I added a change to the nix-doom-emacs repository to change the resolution of evil-collection to be an extra dependency (not going through the regular emacs' dependency resolution, but through nix machinery).

I did this as the regular emac's dependency resolution hangs on the latest version of macOS, specifically when compiling the evil-collection-speedbar.el file.

Now, this "worked" ok. Everything compiles and we are good right? Not so much.

I found out that when the extra dependencies compilation fail, it does not fail the whole build. After whacking a few moles making it compile, I noticed that the final installation does not include a modes subdirectory that the package needs. I think this is due to the nix machinery only taking .el files into consideration (not directories).

I'm trying to make evil-collection work in macOS, ideally I would be able to skip a specific extension from evil-collection (the one hanging the build).

21:14:55
@roman.gonzalez:matrix.orgroman.gonzalez at this point, I would recommend reverting the evil-collection dependency resolution to come from emacs (e.g. remove it from the overrides.nix). This may work for Linux folks so no need to stop that from happening. 21:16:31
@roman.gonzalez:matrix.orgroman.gonzalezbefore I do the PR, I'm interested in your thoughts21:16:49
27 Jun 2023
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) roman.gonzalez: it seems like you currently know what's going on better than me (: 01:56:42
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)is modes an empty subdir? 01:56:49
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * is modes an empty subdir? that'd make sense 01:56:56
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) and i'm rather puzzled by the two different dependency resolution codepaths you mentioned: straight.el collects almost everything (excluding mu4e) into the same straight-emacs-env derivation? 01:58:34
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i love the mole whacking metaphor01:58:53
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * i love the mole whacking analogy01:59:00
28 Jun 2023
@htsr:matrix.orghtsr joined the room.08:24:35
30 Jun 2023
@suskeyhose:matrix.org@suskeyhose:matrix.org

I've been using doom by just having emacs in my home-manager config and putting the deps it needs on the path into my config as well, and that's been working fine for me. I'm doing this because my doom config uses git submodules and nix chokes on that when I try nix-doom-emacs' home-manager module. I'm satisfied with this for now, except for one thing: the all-the-icons-fonts have not been properly detected by emacs. Is there something I can do to force it to have access to those fonts and use them?

16:35:00
1 Jul 2023
@lord-valen:matrix.orglord-valen What do you mean when you say that nix "chokes on it"? Had you tried using ?submodules=1 in the URL? 07:07:11
@lord-valen:matrix.orglord-valenAlso your presence reminds me that I should learn Lojban lol.07:07:45
@suskeyhose:matrix.org@suskeyhose:matrix.org

Hooray, more lojban evangelization. Anyway, I have tried ?submodules=1 in the url, however building my home-manager config with nix-doom-emacs and my config hangs, and when I inspect the process tree with htop I see that the process that's stuck is git cloning submodules.

15:12:27
@suskeyhose:matrix.org@suskeyhose:matrix.org

I'm mostly just concerned with getting the fonts working though, because I don't really want to use nix-doom-emacs because I like to edit my config frequently while I'm using emacs, having to rebuild my home config each time sounds like a big annoyance.

15:53:43
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i wonder what the overlap is between nix-doom-emacs and conlanging15:58:49
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)(just learning toki pona here very casually)15:59:00
@suskeyhose:matrix.org@suskeyhose:matrix.org

I personally know at least 3 other people in the lojban community who use nix

15:59:32
@suskeyhose:matrix.org@suskeyhose:matrix.org

actually four now that I think about Xe

15:59:43
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) i have NixOS fonts.fonts set 15:59:46
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)(incl all-the-icons, seems to mostly work fine usually)15:59:59
@suskeyhose:matrix.org@suskeyhose:matrix.org

That's a good thought, I should try that after I see if enabling home-manager's fonts.fontconfig option

16:01:34
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i'm not convinced my fontconfig snip does anything, don't like thinking about it16:02:11
@suskeyhose:matrix.org@suskeyhose:matrix.org

Actually looks like enabling fontconfig did it

16:02:31
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)and ligatures grew on me since i couldn't get rid of them :P16:02:35
@duponin:alternativebit.frduponin left the room.16:55:00
3 Jul 2023
@shuliang:matrix.orgshuliang joined the room.01:19:18

Show newer messages


Back to Room ListRoom Version: 9