Ryan Lahfa
fde8f66ea7
Very rudimentary; undocumented, untested in production. This is for testing purposes. Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
38 lines
807 B
Nix
38 lines
807 B
Nix
# This is a very rudimentary hive to deploy Liminix images.
|
|
{
|
|
sources ? import ./npins,
|
|
nixpkgs ? sources.nixpkgs,
|
|
liminix ? sources.liminix,
|
|
}:
|
|
let
|
|
evalLiminix =
|
|
{
|
|
config,
|
|
device,
|
|
output,
|
|
}:
|
|
{
|
|
primary =
|
|
(import liminix {
|
|
inherit device nixpkgs;
|
|
imageType = "primary";
|
|
liminix-config = config;
|
|
}).outputs.${output};
|
|
secondary =
|
|
(import liminix {
|
|
inherit device nixpkgs;
|
|
imageType = "secondary";
|
|
liminix-config = config;
|
|
}).outputs.${output};
|
|
};
|
|
zyxel = {
|
|
nwa50ax = import "${liminix}/devices/zyxel-nwa50ax";
|
|
};
|
|
in
|
|
{
|
|
ap-test = evalLiminix {
|
|
config = ./machines/ap/configuration.nix;
|
|
device = zyxel.nwa50ax;
|
|
output = "zyxel-nwa-fit";
|
|
};
|
|
}
|