!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
14 Jun 2023
@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
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. the vsc live share is atrocious if you have some latency22:50:34
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. vsc live share is atrocious if you have some latency22:50:40
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) * also, if you want, i'd be happy to pair with you (or anyone else around here) on the whole locking mechanism thing, i can spin up a nixos box on GCP and get a doom emacs there which should be good enough. vsc live share is atrocious if you have some latency22:51:49
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)UTC 1pm-11pm is good22:51:51
20 Jun 2023
@JoelMcCracken:matrix.orgJoelMcCrackenthanks! I may take you up on that, let me get back to you14:09:23
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@j4:matrix.org
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. :)
Sorry for necroposting, but for the last point. How do you refer to your git repo without hardcoding in the path? Using standard ./path notation in Nix will symlink from the nix store
21:32:42
@j4:matrix.orgj4m3s I have a kind of setup script in my repo that I use to ln -sf outside of Nix basically 21:33:37
@hdzki:hdzki.kozow.comhdzki ⚡️Oh so a shell script. I thought you found a way to do it in nix 😅21:34:40
@hdzki:hdzki.kozow.comhdzki ⚡️I could probably afford hardcoding git repo location since it's consistent in all of my machines21:35:12
@hdzki:hdzki.kozow.comhdzki ⚡️ How do you deal with extra config stuff then? Write out a file and load it in config.el ? 21:35:40
@j4:matrix.orgj4m3swdym by extra config ? 21:36:31
@hdzki:hdzki.kozow.comhdzki ⚡️ *

How do you deal with extra config stuff then? Write out a file and load it in config.el ?
I'm asking because i used to have a setup like this with NDE

extraConfig = ''
    (setq exec-path (append exec-path '( ${
    pkgs.lib.concatMapStringsSep " " (x: ''"${x}/bin"'') extraBins
    } )))
    (setenv "PATH" (concat (getenv "PATH") ":${
    pkgs.lib.concatMapStringsSep ":" (x: "${x}/bin") extraBins
    }"))
';
21:36:34

Show newer messages


Back to Room ListRoom Version: 9