!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

You have reached the beginning of time (for this room).


SenderMessageTime
7 Sep 2023
@ckie:ckie.devckie (they/them)what do you mean by "nix installs it" though? installs it where. i'd think nix gives some store paths or an elisp payload and emacs evals it into the running process14:09:42
@ckie:ckie.devckie (they/them) like this at runtime but also for the elisp path variable 14:10:15
@ckie:ckie.devckie (they/them) * like this but at runtime but also for the elisp path variable 14:10:24
@JoelMcCracken:matrix.orgJoelMcCracken

TBD, but my thought was:

  • somehow emacs/nix figures out what the speicifc package should be, versions etc.
  • nix then builds this package, maybe via a standard "emacsWithPackages" or something like that; somehow nix would know how to call its own build process
14:11:05
@JoelMcCracken:matrix.orgJoelMcCracken
  • once this is all built, it can just be added to load-path and then loaded
14:11:33
@ckie:ckie.devckie (they/them)yes! 14:12:19
@JoelMcCracken:matrix.orgJoelMcCrackenbut yeahwe should be able to share a lot of all of this code14:12:20
@JoelMcCracken:matrix.orgJoelMcCrackenit would be v nice if elpaca had some design input from us14:13:08
@JoelMcCracken:matrix.orgJoelMcCrackenso that we could just interface with it instead of having to hack it14:13:25
@ckie:ckie.devckie (they/them) my thought was, main Emacs goes "I want this straight recipe (package! blabla :pin "whatever")" and system()s a nix-build --argstr recipe "…", then there's another little Emacs spawned inside the Nix sandbox which is a FOD and has network access, so it goes on fetching that package and then brings the output back through Nix to the main Emacs 14:14:07
@JoelMcCracken:matrix.orgJoelMcCrackenyep14:14:25

Show newer messages


Back to Room ListRoom Version: 9