From 17b2345a02ad47ab15b6626d8f3bc95236b25b35 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Wed, 6 Mar 2024 21:28:27 +0100 Subject: [PATCH] feat: add liminix-rebuild in the shell Signed-off-by: Ryan Lahfa --- default.nix | 2 ++ liminix-hive.nix | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/default.nix b/default.nix index d04dfad..e4c0d08 100644 --- a/default.nix +++ b/default.nix @@ -37,6 +37,7 @@ let sources = import ./npins; pkgs = import sources.nixpkgs { }; + liminixHive = import ./liminix-hive.nix { inherit sources; }; pre-commit-check = (import sources.pre-commit-hooks).run { src = ./.; @@ -77,6 +78,7 @@ in npins nixos-generators attic-client + liminixHive.liminix.pkgs.pkgsBuildBuild.min-copy-closure ] ++ (builtins.map (p: callPackage p { }) [ (sources.disko + "/package.nix") diff --git a/liminix-hive.nix b/liminix-hive.nix index 563a9ce..94c65de 100644 --- a/liminix-hive.nix +++ b/liminix-hive.nix @@ -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;