Nix + Doom Emacs | 228 Members | |
| Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs | 48 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Jun 2023 | ||
| 14:57:11 | ||
| Hi! I am new to nixos. I just installed doom through flakes and home manager, following the reference on github. Is it normal that i have to nixos-rebuild switch every time i make a change in config.el? | 14:59:05 | |
| There must be a better way, i guess | 14:59:18 | |
| rabil95219: this is the way with nix-doom-emacs, yes. | 15:33:08 | |
| 15:42:43 | ||
| rabil95219: If you're interested (like I do) in getting a similar config on two different computers w/ Nix, this is what I do. (There may be other way of doing it but well, mine works well for now). I fix the doomemacs version via home.file.".emacs.d".source = pkgs.fetchFromGitHub.... This also needs variables (session wide for instance via systemd.user.sessionVariables DOOMLOCALDIR = "$HOME/.local/share/doomemacs"; and DOOMPROFILELOADFILE = "$HOME/.local/share/doomemacs/profiles/load.el"; You need to change this because by default doom & some emacs packages expect to be able to write in .emacs.d.Afterwards, my repo setup symlinks my emacs config between my git repo and .doom.d to get the same config. :) | 16:04:01 | |
| Ok, makes perfect sense. Thanks guys! I am now peeking at hlissner config, which seems to be a little bit less dependent on nix. | 20:20:45 | |
| 16 Jun 2023 | ||
| I'm have been getting this error on
| 20:35:20 | |
| 21:20:20 | ||
| Asbjørn: investigating | 23:42:41 | |
| fixed | 23:47:41 | |
| srasu, Asbjørn: there was a hiccup with a recent PR breaking flake-compat support causing that evil-collection error, fixed here, happy hacking 💜 | 23:49:09 | |
| also you may want to pin your nix-doom-emacs version, there's docs for that | 23:51:11 | |
| That's awesome! Thanks a bunch | 23:51:00 | |
| yw! | 23:52:16 | |
| 17 Jun 2023 | ||
| 06:44:19 | ||
| 18 Jun 2023 | ||
| been digging into the problem of nix-straight.el not installing the versions of packaged pinned by doom itself, and I added a emacs packages overlay w/ the specified version of a specific package, and that seems to be working, however I'm running into a new issue where I think what is happening is nix-straight is effecively ignoring the :files attribute here: https://github.com/doomemacs/doomemacs/blob/3853dff5e11655e858d0bfae64b70cb12ef685ac/modules/completion/vertico/packages.el#L4-L7 | 20:12:46 | |
| so I suspect that I could fix this by updating the code here https://github.com/nix-community/nix-straight.el/blob/master/setup.el#L29-L31 so that it includes any :files attributes, but i'm not sure. Any ideas? I'd really appreciate some input, i'm still not very good at nix (though I am reasonably competent at emacs lisp) | 20:14:22 | |
| 19 Jun 2023 | ||
| 13:49:27 | ||
| so... after debugging even more, I have no idea what is going on. It seems like a lot of what nix-straight does, well, it actually doesn't do. I feel like perhaps there have been regressions | 19:24:42 | |
| I'd be willing to try to help maintain nix-doom-emacs; seems like i'm digging into it anyway | 20:09:44 | |
| JoelMcCracken: yes please! | 22:39:28 | |
| and yeah it indeed just doesn't do a lot of the useful things to do | 22:39:48 | |
| i previously wrote about it here — it's a pinned issue but NDE has been working well-enough for me so it just hasn't managed to grab my focus with everything else being ~more urgent | 22:42:06 | |
| i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. the vsc live share is atrocious if you have some latency | 22:50:34 | |
| * i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. vsc live share is atrocious if you have some latency | 22:50:40 | |
| * also, if you want, i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. vsc live share is atrocious if you have some latency | 22:51:49 | |
| UTC 1pm-11pm is good | 22:51:51 | |
| 20 Jun 2023 | ||
| thanks! I may take you up on that, let me get back to you | 14:09:23 | |
In reply to@j4:matrix.orgSorry for necroposting, but for the last point. How do you refer to your git repo without hardcoding in the path? Using standard ./path notation in Nix will symlink from the nix store | 21:32:42 | |