import-tree icon indicating copy to clipboard operation
import-tree copied to clipboard

Usage for NixOS/HM modules

Open xaltsc opened this issue 5 months ago • 2 comments

The docs gives this example: https://import-tree.denful.dev/getting-started/quick-start/#with-nixos--nix-darwin--home-manager

Which obviously doesn't work as import-tree is an undefined variable.

How do I make it work. inputs.import-tree seems to try to import a flake-parts module.

xaltsc avatar Jun 17 '26 22:06 xaltsc

Which obviously doesn't work as import-tree is an undefined variable.

obviously it does work as long as you access it as you access any other input of yours

How do I make it work. inputs.import-tree seems to try to import a flake-parts module.

don't know what you are referring to, import-tree has absolutely no knowledge of what flake-parts is.

maybe take a look at this example: https://github.com/denful/dendritic-unflake/blob/main/templates/builtins/default.nix

vic avatar Jun 17 '26 22:06 vic

Yeah, I'm dumb, I forgot to prefix the directory I was importing with _, so it got first imported as a flake-parts module, hence the confusion.

xaltsc avatar Jun 17 '26 23:06 xaltsc