!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

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


SenderMessageTime
10 Mar 2024
@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
@xx_doomer_xx:matrix.orgsimple-coderOk thanks, I am currently spending time in nix pills just learning things here in there, but I definitely need put some time aside to learn flakes better, they are very useful. I'm going to do a rebuild, one second.03:32:20
@ryan4yi:matrix.orgRyan Yin * An tutorial for specialArgs, in case you're not familiar with it: https://nixos-and-flakes.thiscute.world/nixos-with-flakes/nixos-with-flakes-enabled#pass-non-default-parameters-to-submodules05:35:54
12 Mar 2024
@woobilicious:matrix.orgwoobiliciousnot sure if this is useful, but my nixos-configuration is using flakes, and a few tricks that shouldn't be too overwhelming I hope: https://github.com/YellowOnion/nixos-config/blob/master/flake.nix05:00:59
14 Mar 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org left the room.02:04:20
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:44:36

Show newer messages


Back to Room ListRoom Version: 9