How do I make a generic aspect be included only once:
foo = { class, aspect-chain }: { nixos.bar = ...; }
if I include it at den.default or den.ctx.host then nixos.bar is duplicated because the aspect is included once for the host and once when called for each user,
this does not happen for static aspects like { nixos.bar = ...; } I believe, because of how ctx-apply.nix keep track of statics, I believe foo can also be detected to not be included more than once.
maybe ctx-apply could keep track of the aspect name (or definition loc?) and its params as a way to deduplicate?
How do I make a generic aspect be included only once:
if I include it at
den.defaultorden.ctx.hostthennixos.baris duplicated because the aspect is included once for the host and once when called for each user,this does not happen for static aspects like
{ nixos.bar = ...; }I believe, because of how ctx-apply.nix keep track of statics, I believe foo can also be detected to not be included more than once.maybe ctx-apply could keep track of the aspect name (or definition loc?) and its params as a way to deduplicate?