flake-parts: ensure flake.darwinConfigurations is mergeable

We didn't run into issues previously for `nixosConfigurations` because
there is already a [flake-parts module] that creates the option inside
`flake`.

[flake-parts module]: https://github.com/hercules-ci/flake-parts/blob/main/modules/nixosConfigurations.nix
This commit is contained in:
Michael Hoang
2025-04-08 17:52:30 +02:00
parent e781741023
commit 88669ec19c

View File

@@ -44,11 +44,12 @@ in
}; };
}; };
options.flake = options.flake = flake-parts-lib.mkSubmoduleOptions (
flake-parts-lib.mkSubmoduleOptions { {
clan = lib.mkOption { type = types.raw; }; clan = lib.mkOption { type = types.raw; };
} }
// outputModule.topLevel.options; // outputModule.topLevel.options
);
config = { config = {
flake = { flake = {
clan = outputModule.clan; clan = outputModule.clan;