2023-10-06 16:52:56 +00:00
|
|
|
{
|
|
|
|
# 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 }:
|
2023-10-06 16:52:56 +00:00
|
|
|
let
|
|
|
|
clan = clan-core.lib.buildClan {
|
|
|
|
directory = self;
|
2023-10-23 20:31:12 +00:00
|
|
|
clanName = "test_flake_with_core_dynamic_machines";
|
2023-10-06 16:52:56 +00:00
|
|
|
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;
|
2023-10-06 16:52:56 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
inherit (clan) nixosConfigurations clanInternals;
|
|
|
|
};
|
|
|
|
}
|