18
What's the recommended way to set up Doom Emacs in NixOS?
(discuss.tchncs.de)
https://github.com/nix-community/nix-doom-emacs - declarative
https://github.com/hlissner/dotfiles/blob/master/modules/editors/emacs.nix - imperative (used by the doom emacs author, this is probably more hackable)
@ geometry dash lite hello, you can follow these steps
nix
Copy
environment.systemPackages = with pkgs; [
emacs
ripgrep
fd
];
3. Enable the Nix package: Enable the Nix package by adding it to the list of packages in the environment.systemPackages section of your Nix configuration file.
4. Save and apply the configuration: Save the Nix configuration file and apply the changes by running the following command as root or with sudo:
Copy $ sudo nixos-rebuild switch
Copy
$ git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
6. Customize Doom Emacs configuration (optional): If you want to customize Doom Emacs, you can modify the ~/.doom.d/config.el file according to your preferences. This file allows you to configure various aspects of Doom Emacs, such as packages, themes, and keybindings.
7. Install Doom Emacs: Install Doom Emacs by running the following command:
Copy $ ~/.emacs.d/bin/doom install
Copy
$ ~/.emacs.d/bin/doom sync
Ah, so effectively the standard installation. Alright, thanks!
That answer was generated by chatgpt, I don't think that's anywhere near a sensible way of achieving what you asked.
I don't use emacs so I don't know what the most optimal way would be, but even the much less popular editor I use has an elegant solution in nix, I assume the same holds true for emacs.
All about NixOS - https://nixos.org/