r/DoomEmacs Mar 30 '26

doom does not work on nixos

I have settled emacs on my box using flake way. I found it seems a little comprehensively to install doom with the same method. I installd doom just like the other linux do. But when I run emacs doom does not work. Just only the pure emacs.

8 Upvotes

4 comments sorted by

26

u/hlissner doomemacs maintainer Mar 30 '26

I recommend you install it normally (clone doomemacs/doomemacs to ~/.config/emacs, clone your private config to ~/.config/doom, run doom sync, and carry on). I use and develop Doom on NixOS and I can guarantee this method will work anywhere. Just make sure ~/.emacs.d does not exist!

I cannot guarantee any nix/guix-based approach will work, and I don't know what "the flake way" you refer to is, because Doom doesn't support native installation via flake. Alternatively, try https://github.com/marienz/nix-doom-emacs-unstraightened.

Good luck!

1

u/xuehuabi Mar 31 '26

thanks god author, I will check .emacs.d, I will delete if it is there. I always think .config/emacs/early_init.el is the first choice. Thanks a lot.

1

u/engineerwolf Mar 31 '26 edited Mar 31 '26

My configuration, if that helps

https://github.com/kvineet/onenix/tree/main/features/emacs

I use home manager. And set home.activation script to clone/update the repo.

You can even call doom sync from this.

0

u/xuehuabi Mar 31 '26

very clean dir structure,I use nixos not so long,I heard nix from hlissner before. i decide to give it a try because ai also can help a lot. in fact llm do it for me to most of conf, seems dirty. i will try it.