!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
12 Sep 2022
@k0kada:matrix.orgk0kada (he/him)Who would know right? /s18:58:50
@ckie:ckie.devckie (they/them) k0kada: i haven't gotten to the gh response yet but i still wonder why we can't just have a mkDoomEmacs flake output like nixpkgs 19:00:52
@ckie:ckie.devckie (they/them)
nix-repl> (builtins.getFlake "nixpkgs").outputs.legacyPackages.x86_64-linux.mkShell
{ __functionArgs = { ... }; __functor = «lambda @ /nix/store/npgmcygdkbqsky140qk9jp56dsmr9ys8-source/lib/trivial.nix:430:19»; override = { ... }; }
19:00:54
@ckie:ckie.devckie (they/them)mkShell is kind of special, here's a different one19:01:20
@ckie:ckie.devckie (they/them)
nix-repl> (builtins.getFlake "nixpkgs").outputs.legacyPackages.x86_64-linux.mkNvidiaContainerPkg
copying '/nix/store/npgmcygdkbqsky140qk9jp56dsmr9ys8-source'«lambda @ /nix/store/npgmcygdkbqsky140qk9jp56dsmr9ys8-source/pkgs/top-level/all-packages.nix:20393:26»
19:01:21
@ckie:ckie.devckie (they/them)image.png
Download image.png
19:01:46
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
nix-repl> (builtins.getFlake "nixpkgs").outputs.legacyPackages.x86_64-linux.mkShell
{ __functionArgs = { ... }; __functor = «lambda @ /nix/store/npgmcygdkbqsky140qk9jp56dsmr9ys8-source/lib/trivial.nix:430:19»; override = { ... }; }
We can, just not as a package
19:01:52
@ckie:ckie.devckie (they/them)i mean that says legacypackage19:02:01
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
i mean that says legacypackage
Well, we can, but this is kinda looks like we are abusing legacyPackages
19:03:07
@k0kada:matrix.orgk0kada (he/him)legacyPackages was created only for nixpkgs, it wasn't supposed to be used outside it19:03:40
@ckie:ckie.devckie (they/them)it seems flakes are missing what we need19:03:55
@k0kada:matrix.orgk0kada (he/him)Also, override is meant to be used in exactly those cases IMO19:04:00
@ckie:ckie.devckie (they/them)it seems very wrong to me is all19:04:14
@ckie:ckie.devckie (they/them)you're making your doom emacs with nde19:04:26
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
it seems flakes are missing what we need
We can use lib to expose functions
19:04:28
@ckie:ckie.devckie (they/them)you're not changing nde's doom emacs19:04:30
@k0kada:matrix.orgk0kada (he/him)It is just that it isn't official19:04:34
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
you're making your doom emacs with nde
I am not making my doom-emacs NDE
19:04:58
@k0kada:matrix.orgk0kada (he/him)We are making the default doom-emacs config NDE19:05:12
@k0kada:matrix.orgk0kada (he/him)My config is way more complex than the one in repo19:05:27
@ckie:ckie.devckie (they/them)but that implies it includes everything19:05:33
@ckie:ckie.devckie (they/them)we don't ship all the binaries for spellchecking and stuff19:05:47
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
but that implies it includes everything
This is why we call it example and not full
19:05:57
@ckie:ckie.devckie (they/them)but there's no "nde's emacs"19:06:23
@ckie:ckie.devckie (they/them)if it doesn't have the batteries included19:06:29
@k0kada:matrix.orgk0kada (he/him)Also, most users use the HM module that still has no default config 19:06:32
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
but there's no "nde's emacs"
Ok, what about this?
19:08:01
@k0kada:matrix.orgk0kada (he/him)I can remove the default19:08:08
@k0kada:matrix.orgk0kada (he/him)This way the user had to type explicitly that they want the example output19:08:38
@ckie:ckie.devckie (they/them)i think maybe all that is needed is a mindset change from me19:09:23

Show newer messages


Back to Room ListRoom Version: 9