!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

You have reached the beginning of time (for this room).


SenderMessageTime
12 Jun 2023
@rickbonavigo:matrix.org@rickbonavigo:matrix.org joined the room.17:36:46
@nurelin:matrix.orgnurelin left the room.18:19:36
14 Jun 2023
@j4:matrix.orgj4m3s joined the room.12:17:38
@rabil95219:matrix.orgrabil95219 joined the room.14:57:11
@rabil95219:matrix.orgrabil95219 Hi! I am new to nixos.
I just installed doom through flakes and home manager, following the reference on github.
Is it normal that i have to nixos-rebuild switch every time i make a change in config.el?
14:59:05
@rabil95219:matrix.orgrabil95219There must be a better way, i guess14:59:18
@artem.types:matrix.orgArtem rabil95219: this is the way with nix-doom-emacs, yes. 15:33:08
@abbe:badti.meabbe left the room.15:42:43
@j4:matrix.orgj4m3s rabil95219: If you're interested (like I do) in getting a similar config on two different computers w/ Nix, this is what I do. (There may be other way of doing it but well, mine works well for now).
I fix the doomemacs version via home.file.".emacs.d".source = pkgs.fetchFromGitHub.... This also needs variables (session wide for instance via systemd.user.sessionVariables DOOMLOCALDIR = "$HOME/.local/share/doomemacs"; and DOOMPROFILELOADFILE = "$HOME/.local/share/doomemacs/profiles/load.el"; You need to change this because by default doom & some emacs packages expect to be able to write in .emacs.d.
Afterwards, my repo setup symlinks my emacs config between my git repo and .doom.d to get the same config. :)
16:04:01
@rabil95219:matrix.orgrabil95219Ok, makes perfect sense. Thanks guys! I am now peeking at hlissner config, which seems to be a little bit less dependent on nix.20:20:45
16 Jun 2023
@asbjorn:olli.ngAsbjørn

I'm have been getting this error on nixos-rebuild switch --upgrade for the past couple of days.
Anyone else run into this?

building Nix...
building the system configuration...
error:
       … while calling the 'head' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/attrsets.nix:784:11:

          783|         || pred here (elemAt values 1) (head values) then
          784|           head values
             |           ^
          785|         else

       … while evaluating the attribute 'value'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:759:9:

          758|     in warnDeprecation opt //
          759|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          760|         inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'evil-collection' missing

       at /nix/store/h5931chm1sy42kk73l3hkpcjwa1c0r3h-source/default.nix:99:7:

           98|     else
           99|       flake.inputs.${p};
             |       ^
          100|   # Packages we need to get the default doom configuration run

20:35:20
@mbick-home-automation-bot:matrix.orgmbick-home-automation-bot joined the room.21:20:20
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) Asbjørn: investigating 23:42:41
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)fixed23:47:41
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) srasu, Asbjørn: there was a hiccup with a recent PR breaking flake-compat support causing that evil-collection error, fixed here, happy hacking 💜 23:49:09
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)also you may want to pin your nix-doom-emacs version, there's docs for that23:51:11
@asbjorn:olli.ngAsbjørnThat's awesome! Thanks a bunch23:51:00
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)yw!23:52:16
17 Jun 2023
@syphoxy:matrix.org@syphoxy:matrix.org joined the room.06:44:19
18 Jun 2023
@JoelMcCracken:matrix.orgJoelMcCracken been digging into the problem of nix-straight.el not installing the versions of packaged pinned by doom itself, and I added a emacs packages overlay w/ the specified version of a specific package, and that seems to be working, however I'm running into a new issue where I think what is happening is nix-straight is effecively ignoring the :files attribute here: https://github.com/doomemacs/doomemacs/blob/3853dff5e11655e858d0bfae64b70cb12ef685ac/modules/completion/vertico/packages.el#L4-L7 20:12:46
@JoelMcCracken:matrix.orgJoelMcCrackenso I suspect that I could fix this by updating the code here https://github.com/nix-community/nix-straight.el/blob/master/setup.el#L29-L31 so that it includes any :files attributes, but i'm not sure. Any ideas? I'd really appreciate some input, i'm still not very good at nix (though I am reasonably competent at emacs lisp)20:14:22
19 Jun 2023
@bascht:matrix.bascht.spacebascht ⚡️ joined the room.13:49:27
@JoelMcCracken:matrix.orgJoelMcCracken so... after debugging even more, I have no idea what is going on. It seems like a lot of what nix-straight does, well, it actually doesn't do. I feel like perhaps there have been regressions 19:24:42
@JoelMcCracken:matrix.orgJoelMcCrackenI'd be willing to try to help maintain nix-doom-emacs; seems like i'm digging into it anyway20:09:44
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) JoelMcCracken: yes please! 22:39:28
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)and yeah it indeed just doesn't do a lot of the useful things to do22:39:48
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) i previously wrote about it here — it's a pinned issue but NDE has been working well-enough for me so it just hasn't managed to grab my focus with everything else being ~more urgent 22:42:06

Show newer messages


Back to Room ListRoom Version: 9