!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
16 Dec 2022
@ckie:ckie.devmei 🌒& ribosomerocker: you probably want a (package! prop-menu) 22:17:39
17 Dec 2022
@adam:valkor.net@adam:valkor.net left the room.04:30:01
18 Dec 2022
@hab25:matrix.org@hab25:matrix.org

I was having trouble installing (package! hyperbole), due to the following error during the nix-straight build:

       > ERROR: doom-emacs build resulted in files being written in $HOME of the build sandbox.
       > Contents of $HOME:
       > /build/tmp.9YIYoZ1pyj
       > /build/tmp.9YIYoZ1pyj/.hyperb

I solved this by, instead of using package!, adding pkgs.emacsPackages.hyperbole to the programs.doom-emacs.extraPackages list. No issues so far.

AFAIU, all I'm losing here are the configuration options of package! which I don't use and are mostly redundant anyway.

I'm thinking of similarly migrating all of my other package!s as well, as it should greatly simplify and reduce bugs in their installation; they will be built by one package (nix) manager instead of "3" (nix, nix-straight, nix-doom-emacs).

Is this a good idea? ckie (they/them) k0kada (he/him)

10:17:25
@k0kada:matrix.orgk0kada (he/him)
In reply to @hab25:matrix.org

I was having trouble installing (package! hyperbole), due to the following error during the nix-straight build:

       > ERROR: doom-emacs build resulted in files being written in $HOME of the build sandbox.
       > Contents of $HOME:
       > /build/tmp.9YIYoZ1pyj
       > /build/tmp.9YIYoZ1pyj/.hyperb

I solved this by, instead of using package!, adding pkgs.emacsPackages.hyperbole to the programs.doom-emacs.extraPackages list. No issues so far.

AFAIU, all I'm losing here are the configuration options of package! which I don't use and are mostly redundant anyway.

I'm thinking of similarly migrating all of my other package!s as well, as it should greatly simplify and reduce bugs in their installation; they will be built by one package (nix) manager instead of "3" (nix, nix-straight, nix-doom-emacs).

Is this a good idea? ckie (they/them) k0kada (he/him)

I still don't think we should have that $HOME check
10:43:28
@k0kada:matrix.orgk0kada (he/him)
In reply to @hab25:matrix.org

I was having trouble installing (package! hyperbole), due to the following error during the nix-straight build:

       > ERROR: doom-emacs build resulted in files being written in $HOME of the build sandbox.
       > Contents of $HOME:
       > /build/tmp.9YIYoZ1pyj
       > /build/tmp.9YIYoZ1pyj/.hyperb

I solved this by, instead of using package!, adding pkgs.emacsPackages.hyperbole to the programs.doom-emacs.extraPackages list. No issues so far.

AFAIU, all I'm losing here are the configuration options of package! which I don't use and are mostly redundant anyway.

I'm thinking of similarly migrating all of my other package!s as well, as it should greatly simplify and reduce bugs in their installation; they will be built by one package (nix) manager instead of "3" (nix, nix-straight, nix-doom-emacs).

Is this a good idea? ckie (they/them) k0kada (he/him)

* I still think we shouldn't have that $HOME check
10:43:38
@k0kada:matrix.orgk0kada (he/him) It does seem this is a legitimate case of a deps just building something and leaving dirty at the simulated $HOME we have 10:44:06
@hab25:matrix.org@hab25:matrix.orgI think it's a useful check, avoids hard to debug problems in the illegitimate cases. But what about directing users to prefer using extraPackages instead of `(package!)`, as I described?11:09:26
@k0kada:matrix.orgk0kada (he/him)
In reply to @hab25:matrix.org
I think it's a useful check, avoids hard to debug problems in the illegitimate cases. But what about directing users to prefer using extraPackages instead of `(package!)`, as I described?
It is not in this particular case
13:47:16
@k0kada:matrix.orgk0kada (he/him)

But what about directing users to prefer using extraPackages instead of (package!), as I described?

A really bad idea because it will cause issues with NDE own code checks

13:48:00
@k0kada:matrix.orgk0kada (he/him) *

But what about directing users to prefer using extraPackages instead of (package!), as I described?

A really bad idea because it will cause issues with NDE own code

13:48:06
@k0kada:matrix.orgk0kada (he/him) *

But what about directing users to prefer using extraPackages instead of (package!), as I described?

A really bad idea because it will cause issues with doom-emacs own code

13:48:56
@hab25:matrix.org@hab25:matrix.org
In reply to @k0kada:matrix.org

But what about directing users to prefer using extraPackages instead of (package!), as I described?

A really bad idea because it will cause issues with doom-emacs own code

Thanks! Do you have a specific issue in mind?
14:03:54
@k0kada:matrix.orgk0kada (he/him)No, but doom-emacs code is complex enough that I can imagine a few hard to debug issues to happen because you're not using the proper way to load a dependency14:05:50
@k0kada:matrix.orgk0kada (he/him)I remember having issues using the wrong way to load a dependency in doom-emacs itself14:06:16
@k0kada:matrix.orgk0kada (he/him)This was before using NDE14:06:32
@k0kada:matrix.orgk0kada (he/him)Anyway, do what you want, but I wouldn't recommend14:06:47
@k0kada:matrix.orgk0kada (he/him) * Anyway, do what you want, but I wouldn't recommend it14:06:52
@k0kada:matrix.orgk0kada (he/him)There is a chance we already do this for NDE itself though, if yes forget what I said14:07:15
@k0kada:matrix.orgk0kada (he/him) But only ckie (they/them) can answer this question 14:07:25
@hab25:matrix.org@hab25:matrix.org
In reply to @k0kada:matrix.org
No, but doom-emacs code is complex enough that I can imagine a few hard to debug issues to happen because you're not using the proper way to load a dependency
True
14:07:37
@hab25:matrix.org@hab25:matrix.orgOk, thanks again!14:07:42
@k0kada:matrix.orgk0kada (he/him)One possibly issue I can think right now is that maybe the deps will not be natively compiled14:08:51
19 Dec 2022
@akaihola:matrix.orgakaihola joined the room.07:25:16
@akaihola:matrix.orgakaihola

Hi all,

I'd like to be able to edit my config.el on the fly without having to rebuild (home-manager switch). I'm using the example home-manager configuration straight from README.md (with doomPrivateDir = ./doom.d;).

If I'm not mistaken, this actually used to work before, I didn't need to recompile. But it changed at some point.

Is this currently possible with nix-doom-emacs?

07:46:02
@mon:tchncs.deribosomerocker
In reply to@ckie:ckie.dev
ribosomerocker: you probably want a (package! prop-menu)
what changed to make that requirement?
12:12:37
@ckie:ckie.devmei 🌒&
In reply to @k0kada:matrix.org
But only ckie (they/them) can answer this question
extraPackages miiiight not get included in the nativecomp build
12:15:21
20 Dec 2022
@emmabastas:matrix.orgEmma Bastås

When working on my config.el I usually test it out running emacs --load <path to config.el>

Of course this doesn't affect the emacs server.

17:20:31
21 Dec 2022
@hab25:matrix.org@hab25:matrix.org
In reply to @ckie:ckie.dev
extraPackages miiiight not get included in the nativecomp build

looks like it does. From M-x describe-function:

hyperbole-mode is an interactive and natively compiled function
defined in hyperbole.el.

10:40:45
22 Dec 2022
@sjuehx:matrix.orgsjuehx set a profile picture.12:24:51
24 Dec 2022
@tbutt:matrix.orgmajorgreys joined the room.22:59:19

Show newer messages


Back to Room ListRoom Version: 9