!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
8 Sep 2022
@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
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
hmmm... how about an overridable package? isn't that close to what your default.nix does or no?
Actually this is a good point
17:07:48
@k0kada:matrix.orgk0kada (he/him)As long this doesn't cause another weird IFD I can try17:08:30
@mon:tchncs.deribosomerocker i don't see a reason why it does :P 17:08:43
@mon:tchncs.deribosomerocker * i don't see a reason why it would :P 17:08:51
@k0kada:matrix.orgk0kada (he/him) (Probably not because nixpkgs.lib.mkOverridable should exist) 17:08:51
@k0kada:matrix.orgk0kada (he/him)Ah oh, forget what I said17:09:56
@k0kada:matrix.orgk0kada (he/him) It is a pkgs.callPackage 17:10:02
@k0kada:matrix.orgk0kada (he/him)Huh....17:10:04
@k0kada:matrix.orgk0kada (he/him)Well, let's hope for the best :P17:10:15
@mon:tchncs.deribosomerockerwhat would you say are the suggested ways to install NDE? #1 flakes + hm, #2 non-flake + hm, #3 flake/non-flake nixos without HM?17:12:15
@k0kada:matrix.orgk0kada (he/him)#1 and #2 looks correct17:14:45
@k0kada:matrix.orgk0kada (he/him)#3 would be standalone usage in general17:14:55
@k0kada:matrix.orgk0kada (he/him)Could be NixOS/Nix-darwin/nix-shell/etc.17:15:15
@k0kada:matrix.orgk0kada (he/him)(You don't need to write every one of them, just give an example of derivation that works everywhere)17:15:40
@k0kada:matrix.orgk0kada (he/him) * (You don't need to write every one of them, just give an example of .nix that works everywhere) 17:15:53
@mon:tchncs.deribosomerocker 👍️, though i'm not sure how it'll turn out, so i'll wait until you get the implementation done to see how to do it 17:18:25

Show newer messages


Back to Room ListRoom Version: 9