!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
11 Jun 2023
@suskeyhose:matrix.orgsrasu

I can't find anything on this so far from google.

20:08:57
@suskeyhose:matrix.orgsrasu

There's also a second problem I'm having, I want to include a private module in my doom configuration, however it appears that if I include it as a git submodule, it hangs. What do others do when they want to publish both a module and their doom config? Is there an alternative to git-submodule which can be used for that purpose?

20:11:14
@suskeyhose:matrix.orgsrasu

Ah, I had forgotten to push the commit that disabled cloning submodules, that is up there now if anyone else happens to want to evaluate it, although I expect noone does.

20:14:14
@suskeyhose:matrix.orgsrasu

Oh, this is weird. I guess it's about the whole thing where i'm in a flake but not using it as a flake input? It's looking for the flake.lock in my source and that exists, but it doesn't have any of the stuff it's looking for? Or does it get downloaded somewhere else with its own flake.lock when I fetch it with fetchTarball?

20:26:14
@suskeyhose:matrix.orgsrasu

Unfortunately this is really giving me trouble. I'm thinking I will have to just install emacs normally and do my config without using home manager and nix-doom-emacs for now.

23:12:30
12 Jun 2023
@zlexpp:matrix.org@zlexpp:matrix.org left the room.06:26:54
@rickbonavigo:matrix.orgrickbonavigo 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.ngA2

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.devmei 🌒& Asbjørn: investigating 23:42:41
@ckie:ckie.devmei 🌒&fixed23:47:41
@ckie:ckie.devmei 🌒& 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.devmei 🌒&also you may want to pin your nix-doom-emacs version, there's docs for that23:51:11
@asbjorn:olli.ngA2That's awesome! Thanks a bunch23:51:00
@ckie:ckie.devmei 🌒&yw!23:52:16
17 Jun 2023
@syphoxy:matrix.orgsy 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

Show newer messages


Back to Room ListRoom Version: 9