| Mhhh let me rephrase, the flake.nix has
{
inputs = {
# ...
customPackage.url = "github:jeyemwey/customPackage";
};
outputs = { customPackage, ... }: {
colmena.myHost = {pkgs, ...}: {
imports = [ ./hosts/myHost ];
services.nginx.virtualHosts."myPackage.example.com".root = "${customPackage.packages."${pkgs.hostPlatform.system}".default}";
};
};
}
and I can reference the customPackage in the flake outputs function just fine, but I'm not sure how I can reference it in the imports target in ./hosts/myHost/default.nix:
{...}: {
services.nginx.enable = true;
services.nginx.virtualHosts."myPackage.example.com" = {
forceSSL = true;
enableACME = true;
## TODO: Find way to reference customPackage here
# root = ...;
};
}
If that is at all possible? Your answer seems to reference on the inputs of the customPackage which is not what I need here.
|