From 3aafc9d272b929626e279aab788f2a5d619e1a1f 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 46daed7..885e7e2 100644 --- a/default.nix +++ b/default.nix @@ -36,6 +36,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 = ./.; @@ -76,6 +77,7 @@ in npins colmena nixos-generators + 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;