this post was submitted on 02 Jul 2023
9 points (100.0% liked)

Nix / NixOS

1702 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

I'm quite new to NixOS and am currently running it inside a VM. I've been using Arch as my daily-driver for almost a year now.

How do i write a NixOS derivation to configure Doom Emacs for me?

I already have my init, config and packages.el files in my dotfiles private repo on Gitlab. Assuming I've already cloned these repos to my home directory, is it possible to create a Nix derivation for this purpose??

EDIT: I've setup my custom Emacs build, and the rest of the script automatically configures doom for me.

top 4 comments
sorted by: hot top controversial new old
[–] KindaABigDyl@programming.dev 6 points 1 year ago* (last edited 1 year ago) (1 children)

Not an emacs user, but probably there's an option for emacs that will allow you to embed your emacs config into your nix config.

If you'd rather have a separate file, you can install files to /etc/ via the environment.etc."<file-name>".source = ./file/in/your/nix/repo or using home-manager with home."<file-name>".source = ./file/in/your/nix/repo

I'm a "put it in the nix config" guy myself, and that's how I set up neovim

[–] zstg@programming.dev 1 points 1 year ago (1 children)

I have my Emacs configs, managed by a dotfiles repo. I wanted to know how to set up Doom Emacs

[–] KindaABigDyl@programming.dev 1 points 1 year ago* (last edited 1 year ago)

Sorry I didn't know there was a difference. I thought Doom Emacs was a version of Emacs, not something that worked alongside the original. Like I said I'm a neovim user

[–] priapus@sh.itjust.works 5 points 1 year ago* (last edited 1 year ago)

Nix-doom-emacs is a community flake that has a home-manager module you can add to your config.

load more comments
view more: next ›