Skip to content
Snippets Groups Projects
Commit 1e8acd7b authored by Tom Prince's avatar Tom Prince
Browse files

Expose `ourpkgs` as `config.passthru.ourpkgs` for use by tests.

We currently expose `ourpkgs` to nixos modules via an `ourpkgs` argument using
`_module.args`. However, `_module.args` is not available in the final
configuraiton. Thus, to allow tests to access the value, we also expose
is via passthru.
parent c79c7db3
No related branches found
No related tags found
2 merge requests!228merge develop into production,!172Add a nixos module for the ZKAP Spending Service
# A NixOS module which exposes custom packages to other modules.
{ pkgs, ...}:
{
let
ourpkgs = pkgs.callPackage ../../nixos/pkgs {};
in {
config = {
# Expose `nixos/pkgs` as a new module argument `ourpkgs`.
_module.args.ourpkgs = pkgs.callPackage ../../nixos/pkgs {};
_module.args.ourpkgs = ourpkgs;
# Also expose it as a config setting, for usage by tests,
# since the `_module` config is not exposed in the result.
passthru.ourpkgs = ourpkgs;
};
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment