From 14f38b02e2c91874da3d3ac5ec825b8f2084d505 Mon Sep 17 00:00:00 2001 From: Ryan Lahfa Date: Sun, 8 Dec 2024 23:51:21 +0100 Subject: [PATCH] chore(machines/ap01/recovery): better scope for `pkgs` and add `zyxel-bootconfig` to levitation This is useful to reconfigure A/B in memory. Signed-off-by: Ryan Lahfa --- machines/liminix/ap01/recovery.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/machines/liminix/ap01/recovery.nix b/machines/liminix/ap01/recovery.nix index da305c7..70c3e2e 100644 --- a/machines/liminix/ap01/recovery.nix +++ b/machines/liminix/ap01/recovery.nix @@ -9,9 +9,9 @@ let parentConfig = config; in { - defaultProfile.packages = with pkgs; [ + defaultProfile.packages = [ # Levitate enable us to mass-reinstall the system on the fly. - (levitate.override { + (pkgs.levitate.override { config = { imports = [ "${modulesPath}/network" @@ -43,7 +43,10 @@ in hostname = "${parentConfig.hostname}-live"; nixpkgs.buildPlatform = builtins.currentSystem; - defaultProfile.packages = [ mtdutils ]; + defaultProfile.packages = with pkgs; [ + mtdutils + zyxel-bootconfig + ]; # Only keep root, which should inherit from DGN access control's root permissions. users.root = config.users.root; };