!yUrHuDcxUngfTlDbiy:matrix.org

flakelight

38 Members
https://github.com/nix-community/flakelight12 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
12 Jun 2025
@accelbread:matrix.orgaccelbreadthat should be all that is needed23:48:13
@hezhenxing:matrix.orgZhenxing He

What if I wont to be able to do something like this in flakeB:

{
  inputs.flakeA.url = "/path/to/flakeA";
 outputs = inputs: inputs.flakeA ./. {};
}
23:51:31
@hezhenxing:matrix.orgZhenxing He *

What if I want to be able to do something like this in flakeB:

{
  inputs.flakeA.url = "/path/to/flakeA";
 outputs = inputs: inputs.flakeA ./. {};
}
23:51:52
@hezhenxing:matrix.orgZhenxing Heand in flakeB, it will get default for inputs.aaa and others.23:53:20
@hezhenxing:matrix.orgZhenxing He *

What if I want to be able to do something like this in flakeB:

{
  inputs.flakeA.url = "/path/to/flakeA";
  outputs = inputs: inputs.flakeA ./. { inherit inputs; };
}
23:54:40
13 Jun 2025
@hezhenxing:matrix.orgZhenxing He

in flakeA, I did something like this:

{
  inputs = {...};
  outputs = inputs:
    flakelight ./. {
      imports = [
        flakelight.flakelightModules.flakelightModule
        ./myfeature.nix
      ];
      flakelightModule = {lib, ...}: {
        imports = [./myfeature.nix];
        inputs.flakelight = lib.mkDefault flakelight;
        inputs.home-manager = lib.mkDefault home-manager;
     };
   };
}
00:42:36
@hezhenxing:matrix.orgZhenxing HeAnd it seems work as expected, but I am not sure if this is the right way to go.00:44:38
@accelbread:matrix.orgaccelbreadRedacted or Malformed Event02:03:51
@accelbread:matrix.orgaccelbread also don't need to set inputs.flakelight (flakelight already sets this) 02:05:11
@accelbread:matrix.orgaccelbreadah yeah you want the module to make it directly callable02:06:21
@accelbread:matrix.orgaccelbreadhmm02:07:48
@accelbread:matrix.orgaccelbreadMaybe should remove the setting of nixDir from flakelight.flakelightModules.flakelightModule02:09:48
@hezhenxing:matrix.orgZhenxing HeYeah, make it callable looks very neat and cool, love this feature!02:11:57
@accelbread:matrix.orgaccelbread yeah, the functor config lets you set the function for when the flake is called. that module sets it to an extended mkFlake 02:14:20
@accelbread:matrix.orgaccelbread yeah, i'll push an update to have it not set nixDir to . when I get back home 02:15:06
@hezhenxing:matrix.orgZhenxing HeGreat, thx, not in a hurry, I can work around by setting nixDir manuallly.02:16:17
16 Jun 2025
@accelbread:matrix.orgaccelbreadI've updated the module to not set nixDir As a heads-up, I also renamed flakelight.flakelightModules.flakelightModule to flakelight.flakelightModules.extendFlakelight since the old name was a bit confusing02:35:44
@hezhenxing:matrix.orgZhenxing HeGreat, thx!02:56:26
21 Jun 2025
@niclas:overby.meNiclas Overby Ⓝ joined the room.11:36:41

Show newer messages


Back to Room ListRoom Version: 10