!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

747 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay | For Doom Emacs: https://matrix.to/#/#doom-emacs:nixos.org170 Servers

Load older messages


SenderMessageTime
8 Jul 2024
@zzantares:matrix.org@zzantares:matrix.org changed their display name from zzantares to demo-reset.06:00:25
@zzantares:matrix.org@zzantares:matrix.org removed their profile picture.06:00:33
@adham-omran:matrix.org@adham-omran:matrix.org left the room.06:33:29
@pyrox:pyrox.devPyrox [Fox/It/She] changed their display name from Pyrox [Fox/It/She/They] to Pyrox [Fox/It/She].06:53:22
@elonsroadster:matrix.org@elonsroadster:matrix.org left the room.19:53:29
9 Jul 2024
@jasonjckn:matrix.orgNull_Adoes pgtk work on emacs? 07:01:18
@jasonjckn:matrix.orgNull_A * does pgtk work on macos07:01:36
@offset---cyan:matrix.orgoffset---cyan joined the room.10:50:43
@JoelMcCracken:matrix.orgJoelMcCrackenidk a bit of ddging found this: https://www.reddit.com/r/emacs/comments/q1mxpz/pgtkgcc_emacs_on_macos_using_nix/16:03:09
@JoelMcCracken:matrix.orgJoelMcCrackenbut I kinda mostly doubt it, or well, if it does, the emacs window would be an x/gtk based window not a macos native window16:04:44
@JoelMcCracken:matrix.orgJoelMcCrackeni was wondering, i've been considering tyring to integrate org mode and nix so that my nix setups and evaluations are declarative. Does anyone know of any prior art/information on this?16:09:42
@JoelMcCracken:matrix.orgJoelMcCrackena concrete example of what i'm thinking is having an org mode file that tangles all the nix files in a derivation and has some other blocks that runs tests etc against it16:11:19
@JoelMcCracken:matrix.orgJoelMcCrackenthe main reason is i'm still working on learning nix and thinking that something like might help me be more explicit/understand what I is going on better. 16:12:03
@bandithedoge:matrix.orgbandithedoge
In reply to @jasonjckn:matrix.org
does pgtk work on emacs?
why do you need pgtk on mac?
16:22:25
@bandithedoge:matrix.orgbandithedoge
In reply to @JoelMcCracken:matrix.org
i was wondering, i've been considering tyring to integrate org mode and nix so that my nix setups and evaluations are declarative. Does anyone know of any prior art/information on this?
my idea would be to write a script that tangles everything to a temporary directory with a flake.nix and then points nixos-rebuild (or whatever you're using) to it
16:24:22
@JoelMcCracken:matrix.orgJoelMcCrackenyea that's kinda what i'm thinking16:24:47
@bandithedoge:matrix.orgbandithedogeyou can use a nix-shell shebang line to get a minimal emacs as a dependency16:25:37
@JoelMcCracken:matrix.orgJoelMcCrackenthe primary issue with doing that that I see (for me) is that it would be error prone to set up (afaik, maybe there's a way to do it); ideally I would want to hack on the org babel tangling source stuff16:25:59
@bandithedoge:matrix.orgbandithedogeiirc tangling an org file is pretty quick16:27:14
@JoelMcCracken:matrix.orgJoelMcCrackenyea it is16:27:55
@bandithedoge:matrix.orgbandithedogeyou can make the directory non-temporary (~/.cache maybe?) and have the script check if it needs to be tangled16:27:56
@bandithedoge:matrix.orgbandithedoge* you can make the directory non-temporary (~/.cache maybe?) and have the script check if it needs to be re-tangled16:28:23
@bandithedoge:matrix.orgbandithedogethen you can just tangle from emacs and run the script when you need to rebuild16:28:58
@JoelMcCracken:matrix.orgJoelMcCracken

so an upgrade to this I imagine would be like:

  • a headline defines/groups a set of files into a specific nix directory+files content/experiment
  • sub-headlines (or maybe just src blocks?) contain the source of the files for this headline's experiment
  • data is saved to a dir named from the hash of the file names+contents so that it can be found again/deduped (though maybe this is already kinda done by nix itself, I'm still not super duper knowledgeable about nix) ((actually... I do think this is maybe unnecessary? though with nix flakes, I would want to have some kind of a place where the lock file is stored (not in the org file...) but able to be inspected/etc))
  • once deriv is built, ideally can define some code to run against/explore that build (simple version would just be running shell in a nix shell for that deriv to inspect its output etc)
16:35:17
@JoelMcCracken:matrix.orgJoelMcCrackenbc the main issue I forsee with this is the difficulty of setting up a new experiment based upon an old one... what i'm suggesting here would be "competing" with (the regular "have a project, edit the files and poke at stuff until it does what you want")16:36:49
@JoelMcCracken:matrix.orgJoelMcCrackenidk maybe flake lock could be cached instead16:38:00
@JoelMcCracken:matrix.orgJoelMcCrackenother thing about each "iteration of an experiment" having its own dir tho that I like is that I could cd into it and poke at it if I need to16:38:39
@JoelMcCracken:matrix.orgJoelMcCrackenanyway thanks at the very least, glad the idea makes sense to someone else16:40:27
@JoelMcCracken:matrix.orgJoelMcCracken * anyway thanks at the very least for talking it through with me, glad the idea makes sense to someone else16:40:44
@bestlem:matrix.orgbestlem JoelMcCracken: There is https://github.com/rasendubi/dotfiles for everything generated for .org files 19:42:53

Show newer messages


Back to Room ListRoom Version: 6