-
|
I have a public and private repo for my dendritic based nix configuration. For the public repo, I have aspects defined for my hosts (one host defines a user that has an associated aspect). I would like the private repo to be able to import my aspects and my den.hosts option definitions as well as extend the host and user aspects so that that the nixos systems are instantiated from configuration from both repos. I think you import Any help would be greatly appreciated. Thank you for your time and attention. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
you are correct, however we currently have a bug precisely on sharing aspects across repositories (where deeply nested aspects are not merged correctly, see flake-aspects#18 and #113 ) if you don't need to re-use deeply nested aspects it should work.
interesting, { inputs, ... }
{
den.hosts.x86_64-linux.my-laptop = { };
# this example reads from self, but could be another input.
den.base.host.imports = [ inputs.self.modules.den-host.shared ];
flake.modules.den-host.shared = {
options.foo = lib.mkOption { default = "bar"; };
};
# then aspects can use `host.foo`
} |
Beta Was this translation helpful? Give feedback.
I'm somewhat confused by what you are trying to achieve.
This is basically
config.den.ful.admasnd.iso = parametric den.aspects.isoWhy have
den.aspects.isoat all ?Then
flake.denful.admasnd = config.den.ful.admasnd;because the namespace is flake-output.On the consumer flake:
this re-creates
den.aspects.isoon the consumer. I'm wondering why you need it to be namedden.aspects.isoif producer has:
and consumer: