!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
8 Sep 2022
@mon:tchncs.deribosomerocker is using nix-doom-emacs without home-manager in any way recommended? i'm trying to see if i can write an example conf without home-manager but the whole package and functions instead of derviations is making it pretty difficult since i don't know how that'd work 16:54:10
@mon:tchncs.deribosomerocker i might just write it as if those things are already merged haha 16:54:23
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
is using nix-doom-emacs without home-manager in any way recommended? i'm trying to see if i can write an example conf without home-manager but the whole package and functions instead of derviations is making it pretty difficult since i don't know how that'd work
This is something that I realized the other day. It is possible but it gets ugly
16:56:00
@k0kada:matrix.orgk0kada (he/him)Ironically, it is more difficult to do this with Flakes than without Flakes16:56:39
@mon:tchncs.deribosomerocker oh wow 16:57:37
@mon:tchncs.deribosomerocker

i mean, with non-flakes it's as easy as

doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;

right? since that's usable in both home.packages and systemPackages?

16:59:10
@k0kada:matrix.orgk0kada (he/him)I think the reason why nobody realized yet that our current Flakes output are kinda bad and bizarre talks a lot about our user base (probably folks that are heavily invested in Nix/NixOS/Home-Manager)16:59:35
@mon:tchncs.deribosomerocker well, from my point of view it says that not many people actively update their system while using it :P 17:00:18
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de

i mean, with non-flakes it's as easy as

doom-emacs = pkgs.callPackage (builtins.fetchTarball {
    url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
  }) {
    doomPrivateDir = ./doom.d;

right? since that's usable in both home.packages and systemPackages?

Without testing this looks right, because our default.nix is the function that makes a NDE derivation
17:00:40
@mon:tchncs.deribosomerocker though that might've just been because everyone I'm around just never got NDE to work and it always failed to function for them 17:01:01
@k0kada:matrix.orgk0kada (he/him)However in Flakes, since we don't expose this function, things gets kinda ugly17:01:05
@k0kada:matrix.orgk0kada (he/him) I think it is something like nde = pkgs.callPackage (import "${inputs.nix-doom-emacs}" { }) 17:02:02
@mon:tchncs.deribosomerocker huh. well, i suppose exposing that function in the Flake would be easy 17:02:45
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
huh. well, i suppose exposing that function in the Flake would be easy
Yeah, but it will also be non-standard
17:03:20
@k0kada:matrix.orgk0kada (he/him) Kinda like our hmModule 17:03:27
@mon:tchncs.deribosomerocker why would that be non-standard? a lot of the packages i'm using do that 17:03:51
@k0kada:matrix.orgk0kada (he/him)

BTW, since we are already discussing big refactors

ckie (they/them) WDYT about nixpkgs-fmt in place of nix-fmt?

17:04:00
@mon:tchncs.deribosomerocker like hyprland and webcord flakes 17:04:04
@k0kada:matrix.orgk0kada (he/him) (I hate nixfmt formatting) 17:04:10
@k0kada:matrix.orgk0kada (he/him) *

BTW, since we are already discussing big refactors

ckie (they/them) WDYT about nixpkgs-fmt in place of nixfmt?

17:04:15
@mon:tchncs.deribosomerocker i think alejandra is the big name these days 17:04:23
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
why would that be non-standard? a lot of the packages i'm using do that
There is no standard to expose functions in Flakes yet
17:04:45
@k0kada:matrix.orgk0kada (he/him) Even output.lib is non-standard 17:04:55
@k0kada:matrix.orgk0kada (he/him) * Even outputs.lib is non-standard 17:05:02
@mon:tchncs.deribosomerocker
In reply to@k0kada:matrix.org
There is no standard to expose functions in Flakes yet
ah, yeah nothing i use exposes functions
17:05:24
@k0kada:matrix.orgk0kada (he/him) BTW, package/packages should expose derivations, not functions either (so our usage is non-standard too) 17:05:32
@mon:tchncs.deribosomerocker except yknow, nix-doom-emacs which uses a function for package 17:05:34
@mon:tchncs.deribosomerocker yeah i know lol 17:05:42
@mon:tchncs.deribosomerocker hmmm... how about an overridable package? isn't that close to what your default.nix does or no? 17:06:34
@k0kada:matrix.orgk0kada (he/him)

So what I am thinking to do is:

  • outputs.packages will expose a proper full derivation of NDE (probably useless because it will use a default config or something, but I think it serves as a playground for people to test)
  • outputs.mkNixDoomEmacsDrv (name TBD) will expose the default.nix as a proper function
  • outputs.hmModule will stay since there is no standard for this
17:07:27

Show newer messages


Back to Room ListRoom Version: 9