!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
29 May 2023
@JoelMcCracken:matrix.orgJoelMcCrackenDoes anyone happen to have an emacsPackagesOverlay which specifies versions of packages that are compatible with doom?20:00:29
30 May 2023
@velnbur:matrix.orgVelnbur 🇺🇦 joined the room.07:14:30
@deltasc:matrix.org@deltasc:matrix.org joined the room.15:35:25
2 Jun 2023
@ckie:ckie.devmei 🌒& changed their display name from ckie (they/them; limited keyboard usage, voice preferred) to ckie (they/them).22:15:52
3 Jun 2023
@yuki:backalley.clubYuki (they/them) (Old) changed their display name from Yuki (they/them) to Yuki (they/them) (Old).15:33:48
8 Jun 2023
@glial:matrix.orggli.al joined the room.10:05:00
9 Jun 2023
@petrichor:envs.net@petrichor:envs.net changed their display name from Jez (he/him) 🖥️ to Jez (he/him) ♾️.15:43:46
11 Jun 2023
@suskeyhose:matrix.org@suskeyhose:matrix.org joined the room.20:01:30
@suskeyhose:matrix.org@suskeyhose:matrix.org

Hello, I'm trying to get set up with my doom config on a new nixos config, which can be found here: https://git.sr.ht/~srasu/nixos-config . I'm doing a home manager flake config, but I'm pulling in doom via fetchTarball and callPackage. I'm getting an error saying evil-collection can't be found.

20:08:19
@suskeyhose:matrix.org@suskeyhose:matrix.org

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

20:08:57
@suskeyhose:matrix.org@suskeyhose:matrix.org

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.org@suskeyhose:matrix.org

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.org@suskeyhose:matrix.org

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.org@suskeyhose:matrix.org

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.org@rickbonavigo:matrix.org joined the room.17:36:46
@nurelin:matrix.org@nurelin:matrix.org 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.me@abbe:badti.me 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.ng@asbjorn:olli.ng

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

Show newer messages


Back to Room ListRoom Version: 9