Fediversity/deployment/data-model-test.nix
Valentin Gagarin 7a667c7517 WIP: start writing an evaluation test
turns out we also need a collection of configurations, obviously
next: figure out where to wire everything up to obtain a deployment
2025-07-01 23:59:16 +02:00

45 lines
740 B
Nix

let
inherit (import ../default.nix { }) pkgs inputs;
inherit (pkgs) lib;
eval =
module:
(lib.evalModules {
specialArgs = {
inherit inputs;
};
modules = [
module
./data-model.nix
];
}).config;
in
{
test-eval = {
expr =
let
fediversity = eval (
{ config, ... }:
{
resources.nixos = {
};
applications.hello = {
};
environments.single-nixos-vm = {
};
configurations.example = {
enable = true;
applications.hello.enable = true;
};
}
);
in
{
};
expected = {
};
};
}