clan-core/pkgs/clan-cli/tests/test_flake_with_core_dynamic_machines/flake.nix

25 lines
664 B
Nix
Raw Normal View History

{
# Use this path to our repo root e.g. for UI test
# inputs.clan-core.url = "../../../../.";
# this placeholder is replaced by the path to nixpkgs
inputs.clan-core.url = "__CLAN_CORE__";
2024-03-17 18:48:49 +00:00
outputs =
{ self, clan-core }:
let
clan = clan-core.lib.buildClan {
directory = self;
2023-10-23 20:31:12 +00:00
clanName = "test_flake_with_core_dynamic_machines";
machines =
let
machineModules = builtins.readDir (self + "/machines");
in
2024-03-17 18:48:49 +00:00
builtins.mapAttrs (name: _type: import (self + "/machines/${name}")) machineModules;
};
in
{
inherit (clan) nixosConfigurations clanInternals;
};
}