add note on better solution

This commit is contained in:
Kiara Grouwstra 2025-07-11 16:04:34 +02:00 committed by kiara Grouwstra
parent 6f5a96da7d
commit ba2cb8fa40

View file

@ -1,5 +1,13 @@
let
# pulling this in manually over from module args resolves an infinite recursion
# pulling this in manually over from module args resolves an infinite recursion.
# FIXME: instead untangle `//infra/flake-part.nix` and make it stop passing wild functions.
# move moving towards a portable-services-like pattern where some things are submodules.
# Right now those wild functions are for parameterising a bunch of things,
# and the modular way to do that would be options --
# obviously you can't use those for `imports`,
# so one way to decouple fixpoints is to isolate them into submodules.
# Therefore one approach would be to try to go down the call graph,
# and see where what's currently a function could be a `submodule` field of something else.
sources = import ../../npins;
in
{