!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
9 Aug 2023
@JoelMcCracken:matrix.orgJoelMcCrackenif you're willing to like advise me somehow (or someone else is) as I work on this i think it would surely help speed it along quite a bit19:32:02
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) ah! opposite here. i've tried to figure that issue out a few times but haven't had any luck figuring out where to intercept straight 19:32:07
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)and I am very willing. NDE being out of date has been an itchy part of my config for a long time19:33:01
@JoelMcCracken:matrix.orgJoelMcCrackensounds good, ill start poking at it19:34:05
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)lmk when you figure out what's needed of the nix bit. you know the general requirements though right?19:34:36
@JoelMcCracken:matrix.orgJoelMcCrackenlet me jut write out what i'm thinking19:35:13
@JoelMcCracken:matrix.orgJoelMcCrackenemacs is run w a shim, similar to what currently occurs via nix-straight, which grabs more of the data besides just the package name (ideally, all of the data) some lisp is called which looks up the metadata to see how straight.el would resolve the package (the repo, the commit, etc). this data is serialized (json?) at subsequent step, nix reads this serialized data, and then constructs an overlay with the correct packages. the installation then procedes as it currently does, using this new overlay to just install the requrired packages. 19:39:42
@JoelMcCracken:matrix.orgJoelMcCrackeni noticed that these are done as separate... derivations? steps? not sure of the right term here.. in nix-straight; i'm not sure why it needs to be this way19:44:10
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) JoelMcCracken: right so, the emacs shim runs in one go, currently collecting just the package names, and it doesn't have a network connection at this point because it's in a Nix build. the package meta is put into a json file, which is the output of this derivation. next up the nix evaluator parses this JSON, and prepares the next derivation using that, reading another derivation's result is called IFD 19:49:25
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * JoelMcCracken: right so, the emacs shim runs in one go, currently collecting just the package names, and it doesn't have a network connection at this point because it's in a Nix build. the package meta is put into a json file, which is the output of this derivation. next up the nix evaluator parses this JSON, and prepares the next derivation using that: reading another derivation's result is called IFD 19:49:32
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * JoelMcCracken: right so, the emacs shim runs in one go, currently collecting just the package names, and it doesn't have a network connection at this point because it's in a Nix build. the package meta is put into a json file, which is the output of this derivation. next up the nix evaluator parses this JSON, and prepares the next derivation using that: reading & Importing From a Derivation's result is called IFD 19:49:51
@JoelMcCracken:matrix.orgJoelMcCrackenahhhhhh19:50:16
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) but the trick is we don't always get fully-qualified package paths, sometimes we just get a (package! blahblah-mode), and we have to resolve it 19:50:38
@JoelMcCracken:matrix.orgJoelMcCrackensure19:50:55
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) so that's done here atm 19:51:55
@JoelMcCracken:matrix.orgJoelMcCrackenthis seems to be the key https://github.com/radian-software/straight.el/blob/master/straight.el#L302219:54:45
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i feel that comment on 303119:55:36
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)so essentially we need to determine a good spot to splice Nix in19:56:38
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)that ideally doesn't involve a large api surface area19:56:52
@JoelMcCracken:matrix.orgJoelMcCrackenyeah19:58:12
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)so that's about where i timed out last time after running around the room trying to read elisp19:58:40
@j4:matrix.orgj4m3sslighty related question, is it sufficient to lock doom's git version to lock package version or ? (I'm confused about the ~/.emacs.d/bin/doom upgrade 19:59:10
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)moooostly19:59:28
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)all of doom's own packages should be pinned, but the user doesn't have to specify a pin19:59:50
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)like I have all of these:20:00:09
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)image.png
Download image.png
20:00:10
@j4:matrix.orgj4m3sYeah right, i was just confused by the fact that in the modules they're called w/o the pin20:00:41
@j4:matrix.orgj4m3sBut seems like the pin is global to the repo :)20:00:49
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)image.png
Download image.png
20:01:36
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) JoelMcCracken: so this is another thing to consider actually. we need to save straight's resolutions. or every package registry's, but that might not be as feasible 20:02:42

Show newer messages


Back to Room ListRoom Version: 9