feat: add liminix-rebuild in the shell

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-03-06 21:28:27 +01:00
parent 8a65248d66
commit 336bbcbcfc
3 changed files with 21 additions and 0 deletions

View file

@ -1,4 +1,15 @@
jobs:
ap:
runs-on: nix
steps:
- uses: actions/checkout@v3
- env:
BUILD_NODE: ap
STORE_ENDPOINT: https://tvix-store.dgnum.eu/infra-signing/
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
STORE_USER: admin
name: Build and cache ap
run: nix-shell -A eval-nodes --run cache-node
bridge01:
runs-on: nix
steps:

View file

@ -38,6 +38,7 @@
sources ? import ./npins,
pkgs ? import sources.nixpkgs { },
nix-pkgs ? import sources.nix-pkgs { inherit pkgs; },
liminixHive ? import ./liminix-hive.nix { inherit sources; }
}:
let
@ -112,6 +113,8 @@ in
}))
pkgs.npins
liminixHive.liminix.pkgs.pkgsBuildBuild.min-copy-closure
(pkgs.callPackage ./lib/colmena { inherit (nix-pkgs) colmena; })
(pkgs.callPackage "${sources.agenix}/pkgs/agenix.nix" { })
(pkgs.callPackage "${sources.lon}/nix/packages/lon.nix" { })

View file

@ -30,6 +30,13 @@ let
};
in
{
liminix.pkgs =
(import liminix {
device = zyxel.nwa50ax;
imageType = "primary";
liminix-config = ./machines/ap/configuration.nix;
}).pkgs;
devices = zyxel;
ap-test = evalLiminix {
config = ./machines/ap/configuration.nix;
device = zyxel.nwa50ax;