eval.nix: expose nixosModules.deploymentOptions (#49)

Allow flake users to import .#nixosModules.deploymentOptions
into their flake, so that the same expression can be used for both,
.#colmena.$host as well as .#nixosConfiguration.$host, without the
latter complaining about undefined options in "deployment".
This commit is contained in:
Paul Haerle 2022-01-23 19:06:41 +01:00 committed by GitHub
parent f4896aad39
commit 5b8971a0f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -524,6 +524,8 @@ in {
meta = hive.meta;
nixosModules = { inherit deploymentOptions; };
docs = {
deploymentOptions = pkgs: let
eval = pkgs.lib.evalModules {