!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
16 Jun 2023
@ckie:ckie.devckie (they/them) 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)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.devckie (they/them)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
@ckie:ckie.devckie (they/them) JoelMcCracken: yes please! 22:39:28
@ckie:ckie.devckie (they/them)and yeah it indeed just doesn't do a lot of the useful things to do22:39:48
@ckie:ckie.devckie (they/them) 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)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) * 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) * 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)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
@j4:matrix.orgj4m3sOoh err, currently I'm not doing this21:37:02
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@j4:matrix.org
wdym by extra config ?
I used to use the extraConfig option to pass in store paths and for doom emacs for stuff such as parinfer and co
21:37:12
@j4:matrix.orgj4m3sBut I guess I woud symlink something from the nix store with home-manager as well 21:37:16
@hdzki:hdzki.kozow.comhdzki ⚡️
In reply to@j4:matrix.org
wdym by extra config ?
* I used to use the extraConfig option to pass in store paths and for doom emacs for stuff such as parinfer and co which by default download exec on first run
21:37:22
@j4:matrix.orgj4m3sIt it's just runtime path of your emacs, can't you wrap your emacs and provide your own derivation ? (to programs.emacs or w/e else you use)21:38:00

Show newer messages


Back to Room ListRoom Version: 9