!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
29 Feb 2024
@aadniz:knaben.orgAdnan Zaman changed their profile picture.01:29:46
2 Mar 2024
@dretrange:matrix.orgDrEtrange joined the room.16:04:36
5 Mar 2024
@woobilicious:matrix.orgwoobilicious ckie (they/them): I wonder if we can just make an opinionated package set inspired by doom instead of using doom itself, that way it might be easier to maintain. 10:19:33
@ckie:ckie.devmei 🌒& woobilicious: it's doable for sure 12:04:23
@ckie:ckie.devmei 🌒&but I'm chained to my doom muscle memory and large language support12:04:40
@ckie:ckie.devmei 🌒& * but I'm chained to my doom muscle memory and significant language support12:04:48
6 Mar 2024
@woobilicious:matrix.orgwoobilicious ckie (they/them): doom's UX stuff can be included, just figuring out how to convert doom's modules in to nix compatible manifest seems like it might be harder than fixing nix-straight. 00:29:31
9 Mar 2024
@heyoni:matrix.orgheyoni
In reply to @woobilicious:matrix.org
anyone know why doom needs an to generate an env file?
without it it has trouble finding binaries like grep, gpg and ssh in my case
05:56:36
10 Mar 2024
@xx_doomer_xx:matrix.orgsimple-coderhttps://github.com/ryan4yin/nix-config/blob/main/home/base/desktop/editors/emacs/default.nix01:48:06
@xx_doomer_xx:matrix.orgsimple-coderhttps://www.reddit.com/r/NixOS/comments/18uk50x/comment/ktqvezb/?context=301:48:17
@xx_doomer_xx:matrix.orgsimple-coderI was using nix-doom-emacs for a while, but I got tired of being it being a year behind due to it being broken, so I decided to install doom emacs manually, in a declarative way using nix, ryan4yin helped me out by sharing his solution, but I can't seem to get it working on my end, the description of my issue is in the reddit issue.01:51:55
@xx_doomer_xx:matrix.orgsimple-coderThe emacs and doom commands do not even exist, so I'm guessing that the env var for doom emacs is not being set?01:53:49
@xx_doomer_xx:matrix.orgsimple-coderDownload doom-emacs.nix01:59:01
@xx_doomer_xx:matrix.orgsimple-coderDownload emacs.nix01:59:08
@xx_doomer_xx:matrix.orgsimple-coderCould any of you try this out on your end to see if it works. The original from ryan4yin is in the github link above.02:00:18
@xx_doomer_xx:matrix.orgsimple-coderI am going install doom emacs manually with nix until nix-doom-emacs gets fixed, which will probably take a long time.02:04:24
@xx_doomer_xx:matrix.orgsimple-coderThese are 2 modules that I import in home.nix, so they are a part of home-manager.02:21:21
@ryan4yi:matrix.orgRyan Yin joined the room.02:31:06
@ryan4yi:matrix.orgRyan Yinimage.png
Download image.png
02:41:20
@ryan4yi:matrix.orgRyan Yin ~/.config.doom causes problems, the source path is the same as the destination xdg.configFIle."doom" 02:42:06
@ryan4yi:matrix.orgRyan Yin *

~/.config.doom causes problems, the source path ~/.config.doom is the same as the destination xdg.configFIle."doom", that's meaningless.

If you have already put your doom configs into ~/.config/doom, then just delete these lines.

02:44:46
@ryan4yi:matrix.orgRyan Yin *

~/.config.doom causes problems, the source path ~/.config.doom is the same as the destination xdg.configFIle."doom", that's meaningless.

If you have already put your doom configs into ~/.config/doom manually, then just delete these lines.

02:47:20
@xx_doomer_xx:matrix.orgsimple-coder Ryan Yin: Ok, thanks for clarifying this, I'm going to make these changes, rebuild then come back, I'll let you know if doom emacs works, thanks again for taking the time to help me out. 03:04:39
@ryan4yi:matrix.orgRyan Yin Another problem is, the doomemacs argument is coming from my flake inputs, which will cause problems too.
Seems like you're not using the flakes experimental feature.
03:11:34
@ryan4yi:matrix.orgRyan YinAnd you're not very familiar with either home-manager nor NixOS, which make copy some nix configs from others painful... I understand that.03:15:36
@ryan4yi:matrix.orgRyan Yinimage.png
Download image.png
03:21:14
@xx_doomer_xx:matrix.orgsimple-coderUhh, oh I missed that part where you are calling doomemacs arg from a flakes input, I'm using a system flake, with home-manager setup as a flake, and (flake+nix-direnv+emacs-direnv) setup for development, and I already have the flakes experimental feature enabled. I am by no means a nix expert, currently I just understand it well enough for using it to setup development environments. Anyways I did have doom emacs setup in my system flake integrated with home-manager, but that was setup for the nix-emacs-doom tool. https://github.com/nix-community/nix-doom-emacs/blob/master/docs/reference.md#home-manager , but I'm not sure if that will be useful for your solution. How did you setup doom emacs in your system flake, and should I just remove the doomemacs arg?03:24:36
@ryan4yi:matrix.orgRyan Yin simple-coder: You should add this into your flake inputs, and then pass it to doom-emacs.nix as a specialArgs:
https://github.com/ryan4yin/nix-config/blob/main/flake.nix#L184-L188
03:28:17
@xx_doomer_xx:matrix.orgsimple-coder Ryan Yin: Ok I'll do that, one second. 03:29:02
@ryan4yi:matrix.orgRyan YinAn tutorial for specialArgs, in case you do not familiar with it: https://nixos-and-flakes.thiscute.world/nixos-with-flakes/nixos-with-flakes-enabled#pass-non-default-parameters-to-submodules03:29:29

Show newer messages


Back to Room ListRoom Version: 9