forked from Fediversity/Fediversity
turns out we also need a collection of configurations, obviously next: figure out where to wire everything up to obtain a deployment
45 lines
740 B
Nix
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 = {
|
|
};
|
|
};
|
|
}
|