!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
1 Sep 2022
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)

🕒️ ckie@cookiemonster ~/git/mon-nixos -> nix build .#nixosConfigurations.nixos.config.programs.emacs.package

[1/0/1 copied (119.0/119.0 MiB), 20.4 MiB DL] fetching source from https://cache.nixos.org
15:29:42
@k0kada:matrix.orgk0kada (he/him)Yeah, this would also work15:30:00
@k0kada:matrix.orgk0kada (he/him)If your nix configs is a public repo15:30:06
@k0kada:matrix.orgk0kada (he/him)You can just send the URL or something15:30:15
@mon:tchncs.deribosomerocker it is, though i have my doom emacs portion commented out for now 15:30:20
@k0kada:matrix.orgk0kada (he/him)Just push the changes in a separate branch15:30:34
@k0kada:matrix.orgk0kada (he/him)And post here, I can take a look later15:30:47
@k0kada:matrix.orgk0kada (he/him)

BTW, https://github.com/nix-community/nix-doom-emacs/issues/259#issuecomment-1234110704

Using the flake.nix/overrides.nix is probably the easiest way to fix this if you're familiar with Flakes already

15:31:33
@k0kada:matrix.orgk0kada (he/him) Just clone the NDE repo, add to the flake.nix/overrides.nix and them point your NDE input to your local fork 15:32:04
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) nit: nix-straight.el 15:32:12
@mon:tchncs.deribosomerocker
In reply to@k0kada:matrix.org
Just push the changes in a separate branch
alright, here you go: https://git.sr.ht/~monaaraj/nixos-config/tree/doom
15:34:04
@mon:tchncs.deribosomerocker that's my configuration in the needed branch 15:34:17
@mon:tchncs.deribosomerocker
In reply to@k0kada:matrix.org

BTW, https://github.com/nix-community/nix-doom-emacs/issues/259#issuecomment-1234110704

Using the flake.nix/overrides.nix is probably the easiest way to fix this if you're familiar with Flakes already

yeah, i've seen that! it might be good to PR in or patch nix-doom-emacs to have idris2-mode, but i thought you guys would've liked it more if the default package override was close to normal doom-emacs dependencies, that and I dislike hacking on the main source code to implement my preference if I could implement it by using the API already provided
15:35:56
@mon:tchncs.deribosomerocker
In reply to@k0kada:matrix.org
Just push the changes in a separate branch
*

alright, here you go: https://git.sr.ht/~monaaraj/nixos-config/tree/doom (this might be confusing, I've named the branch doom, and the folder that i put my doom configuration is doom haha)

15:37:36
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)git is not pleased15:41:32
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)image.png
Download image.png
15:41:33
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) seems that's just git-checkout and there's a way around it but yeah 15:41:52
@mon:tchncs.deribosomerocker ah, so the thing about being both a branch and a folder also annoys git 15:42:01
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)
ckie@cookiemonster ~/git/mon-nixos -> git checkout --no-guess -b doom
Switched to a new branch 'doom'
15:42:13
@mon:tchncs.deribosomerocker very nice 15:42:19
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
yeah, i've seen that! it might be good to PR in or patch nix-doom-emacs to have idris2-mode, but i thought you guys would've liked it more if the default package override was close to normal doom-emacs dependencies, that and I dislike hacking on the main source code to implement my preference if I could implement it by using the API already provided

I am from the opinion that you need to make things work first, and this is the easiest solution that I can think

Them knowing that it works you could either port to emacsPackagesOverlay or just use your fork forever :P

16:01:16
@k0kada:matrix.orgk0kada (he/him)I frequently have to switch to my own fork of NDE too16:01:39
@mon:tchncs.deribosomerocker very well! i'll start trying to put it in overrides.nix, though i'm guessing i'll have the same error, but hopefully by that time you guys know what caused it 16:11:40
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)delayed here since my compute is being used up by other things16:18:29
@mon:tchncs.deribosomerocker argh, it's really painful editing nix files without doom emacs :( 18:02:27
@mon:tchncs.deribosomerocker I believe I've made the change though; how do I test it? nix build doesn't seem to be ehllping 18:07:33
@mon:tchncs.deribosomerocker * I believe I've made the change though; how do I test it? nix build doesn't seem to be working 18:08:45
@mon:tchncs.deribosomerocker

it's outputting:

error: flake 'git+file:///home/mon/projects/nix/nix-doom-emacs' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'
       Did you mean package?
18:08:45
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)well you have to somehow use it with your config, perhaps stick your config in a temp.nix 19:27:47
@mon:tchncs.deribosomerocker

i get this: error: NAR hash mismatch in input 'git+file:///home/mon/projects/nix/nix-doom-emacs' (/nix/store/0pxikgh98ngvgvycr3fl3nnjhwfy37f4-source), expected 'sha256-V+qqtTu80Z/3SyXmgCvzi8OJuJv6CDR5bepzfkaY04M=', got 'sha256-X6yT1XpV6+GESYWW6FWun0pFjzdxqQMwvktjyJegzVg=' after making my nix-doom-emacs input to be my local version?

20:13:44

Show newer messages


Back to Room ListRoom Version: 9