Import all nix files in a directory tree. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ dendrix.oeiuwq.com/Dendritic.html
dendritic inputs
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

link do dennix

+10 -6
+10 -6
README.md
··· 313 313 <summary> 314 314 315 315 Since the import-tree API is _extensible_ and lets you add paths or 316 - filters at configuration time, library authors can provide pre-configured 317 - import-trees and custom API methods for their particular needs. 316 + filters at configuration time, configuration-library authors can 317 + provide custom import-tree instances with an API suited for their 318 + particular idioms. 319 + 320 + I'm exploring this on [Dennix](https://github.com/vic/dennix) - a 321 + community distribution of flake-parts configurations. 318 322 319 323 </summary> 320 324 ··· 327 331 # editor-distro's flakeModule 328 332 {inputs, lib, ...}: 329 333 let 330 - flake.lib.modules-tree = lib.pipe import-tree [ 334 + flake.lib.modules-tree = lib.pipe inputs.import-tree [ 331 335 (i: i.addPath ./modules) 332 - (i: i.addAPI { inherit hadDirMatching on off exclusive; }) 336 + (i: i.addAPI { inherit on off exclusive; }) 333 337 (i: i.addAPI { ruby = self: self.on "ruby"; }) 334 338 (i: i.addAPI { python = self: self.on "python"; }) 335 339 (i: i.addAPI { old-school = self: self.off "copilot"; }) ··· 338 342 339 343 hasDirMatching = self: re: self.matching ".*/.*?${re}.*/.*"; 340 344 341 - on = self: flagName: self.hasDirMatching "\+${flagName}"; 342 - off = self: flagName: self.hasDirMatching "\-${flagName}"; 345 + on = self: flagName: hasDirMatching self "\+${flagName}"; 346 + off = self: flagName: hasDirMatching self "\-${flagName}"; 343 347 344 348 exclusive = self: onFlag: offFlag: lib.pipe self [ 345 349 (self: self.on onFlag)