!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
2 Sep 2022
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
ah, nice. so this documentation in the linked picture is wrong?
It is not wrong, you are confusing programs.emacs vs service.emacs
08:29:37
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
so because of the comment use programs.emacs.package instead if using home-manager, i put that in my home-manager
What it means is that you should set service.emacs.package = config.programs.emacs.package
08:30:53
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
so because of the comment use programs.emacs.package instead if using home-manager, i put that in my home-manager
* What it means is that you should set service.emacs.package = config.programs.emacs.package
08:31:00
@k0kada:matrix.orgk0kada (he/him) * What it means is that you should set service.emacs.package = config.programs.emacs.package if using home-manager, because what I said above (config.programs.emacs.package is already set-up by HM module itself) 08:31:29
@k0kada:matrix.orgk0kada (he/him)The docs are out-of-date though, because the HM module do this automatically: https://github.com/nix-community/nix-doom-emacs/blob/master/modules/home-manager.nix#L107-L11208:32:09
@k0kada:matrix.orgk0kada (he/him)So this part of the documentation can be removed08:32:16
@k0kada:matrix.orgk0kada (he/him) But actually it can not be removed, because it is referring for any of the multiple ways to set the service.emacs (there is one for NixOS, HM and Nix-darwin) 08:56:28
@k0kada:matrix.orgk0kada (he/him)Maybe it needs a rewrite, but I don't think it is incorrect08:56:46
@k0kada:matrix.orgk0kada (he/him) Also, it says before that the doom-emacs refers to a doom-emacs that you should set before and refers to the "doom emacs package" (so a package of Emacs that has doom configured) 08:57:49
@k0kada:matrix.orgk0kada (he/him)Again, maybe it needs a rewrite the way it is written can cause confusion, but it is not incorrect08:58:10
@mon:tchncs.deribosomerocker Yeah, I'd prefer a rewrite, but my problem doesn't seem to be done yet 09:07:34
@mon:tchncs.deribosomerocker

i seem to be getting this error now:

error: attribute 'src' missing

       at /nix/store/sjmq1gphj1arbzf4aqqnygd9pf4hkfkf-source/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix:531:31:

          530|           cmakeFlags = [
          531|             "-DEMACS_SOURCE=${self.emacs.src}"
             |                               ^
          532|             "-DUSE_SYSTEM_LIBVTERM=ON"
(use '--show-trace' to show detailed location information)
09:07:59
@mon:tchncs.deribosomerocker also.. what's the deal with elpaBuild vs trivialBuild? I can't see any documentation for them 09:20:22
@mon:tchncs.deribosomerocker the code was pushed at that time to the repo btw, if you want to test 10:36:37
@mon:tchncs.deribosomerocker still the doom branch 10:36:45
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
also.. what's the deal with elpaBuild vs trivialBuild? I can't see any documentation for them
They're defined in nixpkgs
11:41:57
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de

i seem to be getting this error now:

error: attribute 'src' missing

       at /nix/store/sjmq1gphj1arbzf4aqqnygd9pf4hkfkf-source/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix:531:31:

          530|           cmakeFlags = [
          531|             "-DEMACS_SOURCE=${self.emacs.src}"
             |                               ^
          532|             "-DUSE_SYSTEM_LIBVTERM=ON"
(use '--show-trace' to show detailed location information)
Try to comment the vterm package
11:50:25
@k0kada:matrix.orgk0kada (he/him)IMO, you need to start smaller11:50:37
@k0kada:matrix.orgk0kada (he/him)Trying to do too much things at the same time is a receipt to fail11:50:50
@mon:tchncs.deribosomerocker
In reply to @k0kada:matrix.org
Try to comment the vterm package
should I add it in via the emacsPackagesOverlay?
11:51:44
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
should I add it in via the emacsPackagesOverlay?
Maybe, but really
11:52:13
@k0kada:matrix.orgk0kada (he/him)Just remove it for now11:52:17
@k0kada:matrix.orgk0kada (he/him)Try to get a smaller version of your config running first11:52:27
@mon:tchncs.deribosomerockeralright, i'll do that11:52:38
@k0kada:matrix.orgk0kada (he/him)This is 101 debugging11:52:41
@k0kada:matrix.orgk0kada (he/him)Otherwise you will get crazy trying to fix all issues that get just because you're doing too much at the same time11:53:05
@k0kada:matrix.orgk0kada (he/him)Another suggestion is to switch to default emacs instead of emacsPgtkNativeComp11:53:38
@k0kada:matrix.orgk0kada (he/him)After you get it working, you can re-enable emacsPgtkNativeComp11:53:58
@k0kada:matrix.orgk0kada (he/him)And them vterm11:54:02
@mon:tchncs.deribosomerocker okay, i removed both vterm and emacsPgtkNativeComp 11:57:07

Show newer messages


Back to Room ListRoom Version: 9