forked from Fediversity/Fediversity
the challenge here seems to stem from a mutual dependency between imports and `inputs`: ``` at /nix/store/zid48nap5bh52n8d2gc5kbnzhxy3cm0k-source/deployment/data-model.nix:31:7: 30| staticModules = [ 31| inputs.nixops4.modules.nixops4Deployment.default | ^ 32| … while calling anonymous lambda at /nix/store/hjb1rqv2mfs5ny47amj2gsc8xk05x5g6-source/lib/modules.nix:513:35: 512| context = name: ''while evaluating the module argument `${name}' in "${key}":''; 513| extraArgs = mapAttrs (name: _: | ^ 514| addErrorContext (context name) … while evaluating the module argument `inputs' in "/nix/store/zid48nap5bh52n8d2gc5kbnzhxy3cm0k-source/deployment/data-model.nix": … while evaluating the attribute 'inputs' at /nix/store/zid48nap5bh52n8d2gc5kbnzhxy3cm0k-source/deployment/check/data-model/deployment.nix:15:17: 14| specialArgs = { 15| inherit inputs; | ^ 16| }; … from call site at /nix/store/zid48nap5bh52n8d2gc5kbnzhxy3cm0k-source/deployment/check/data-model/deployment.nix:15:17: 14| specialArgs = { 15| inherit inputs; | ^ 16| }; ```
22 lines
507 B
Nix
22 lines
507 B
Nix
{
|
|
inputs = {
|
|
nixops4.follows = "nixops4-nixos/nixops4";
|
|
nixops4-nixos.url = "github:nixops4/nixops4-nixos";
|
|
};
|
|
|
|
outputs =
|
|
inputs:
|
|
import ./mkFlake.nix inputs (
|
|
{ inputs, sources, ... }:
|
|
{
|
|
imports = [
|
|
inputs.nixops4.modules.flake.default
|
|
];
|
|
|
|
nixops4Deployments.check-deployment-model = {
|
|
imports = [ ./deployment/check/data-model/deployment.nix ];
|
|
_module.args = { inherit inputs sources; };
|
|
};
|
|
}
|
|
);
|
|
}
|