chayleaf,

github.com/nix-community/nix-doom-emacs - declarative

github.com/hlissner/dotfiles/blob/…/emacs.nix - imperative (used by the doom emacs author, this is probably more hackable)

cherylgomez,

@ geometry dash lite hello, you can follow these steps

  1. Create a Nix configuration file: Create a Nix configuration file if you don’t have one already. You can use the default configuration file located at /etc/nixos/configuration.nix. Open the file in a text editor.
  2. Add the necessary Nix packages: In the Nix configuration file, add the necessary Nix packages for Doom Emacs. This typically includes the Emacs package and any other dependencies required by Doom Emacs. Add the following lines to the file:

<span style="color:#323232;">nix
</span><span style="color:#323232;">Copy
</span><span style="color:#323232;">environment.systemPackages = with pkgs; [
</span><span style="color:#323232;">  emacs
</span><span style="color:#323232;">  ripgrep
</span><span style="color:#323232;">  fd
</span><span style="color:#323232;">];
</span>

<span style="color:#323232;">
</span><span style="color:#323232;">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.
</span><span style="color:#323232;">
</span><span style="color:#323232;">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:
</span><span style="color:#323232;">
</span>

Copy $ sudo nixos-rebuild switch


<span style="color:#323232;">
</span>
  1. Clone the Doom Emacs repository: Clone the Doom Emacs repository to a directory of your choice. You can do this by running the following command:

<span style="color:#323232;">Copy
</span><span style="color:#323232;">$ git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
</span>

<span style="color:#323232;">
</span><span style="color:#323232;">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.
</span><span style="color:#323232;">
</span><span style="color:#323232;">7. Install Doom Emacs: Install Doom Emacs by running the following command:
</span><span style="color:#323232;">
</span>

Copy $ ~/.emacs.d/bin/doom install


  1. Start Doom Emacs: Start Doom Emacs by running the following command:

<span style="color:#323232;">Copy
</span><span style="color:#323232;">$ ~/.emacs.d/bin/doom sync
</span>

ruination,

Ah, so effectively the standard installation. Alright, thanks!

lelgenio,
@lelgenio@lemmy.ml avatar

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
  • Subscribed
  • Moderated
  • Favorites
  • nixos@lemmy.ml
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • megavids
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines