2024-03-06 19:14:58 +01:00
|
|
|
# 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
|
|
|
|
{
|
2024-03-06 21:28:27 +01:00
|
|
|
liminix.pkgs =
|
|
|
|
(import liminix {
|
|
|
|
device = zyxel.nwa50ax;
|
|
|
|
imageType = "primary";
|
|
|
|
liminix-config = ./machines/ap/configuration.nix;
|
|
|
|
}).pkgs;
|
|
|
|
devices = zyxel;
|
2024-03-06 19:14:58 +01:00
|
|
|
ap-test = evalLiminix {
|
|
|
|
config = ./machines/ap/configuration.nix;
|
|
|
|
device = zyxel.nwa50ax;
|
|
|
|
output = "zyxel-nwa-fit";
|
|
|
|
};
|
|
|
|
}
|