chore(machines/ap01/recovery): better scope for pkgs and add zyxel-bootconfig to levitation
Some checks failed
Run pre-commit on all files / check (push) Has been cancelled
Check meta / check_dns (pull_request) Successful in 20s
Check meta / check_meta (pull_request) Successful in 20s
Check workflows / check_workflows (pull_request) Successful in 25s
Build all the nodes / ap01 (pull_request) Successful in 1m32s
Build all the nodes / bridge01 (pull_request) Successful in 1m34s
Build all the nodes / geo01 (pull_request) Successful in 1m46s
Build all the nodes / compute01 (pull_request) Successful in 2m12s
Build all the nodes / geo02 (pull_request) Successful in 1m42s
Build all the nodes / rescue01 (pull_request) Successful in 2m7s
Build all the nodes / vault01 (pull_request) Successful in 2m2s
Build all the nodes / storage01 (pull_request) Successful in 2m8s
Run pre-commit on all files / check (pull_request) Successful in 27s
Build all the nodes / web02 (pull_request) Successful in 2m1s
Build all the nodes / web03 (pull_request) Successful in 2m7s
Build all the nodes / web01 (pull_request) Successful in 2m31s

This is useful to reconfigure A/B in memory.

Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
This commit is contained in:
Ryan Lahfa 2024-12-08 23:51:21 +01:00
parent 7e996b0ef8
commit 14f38b02e2

View file

@ -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;
};